diff options
author | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2018-09-18 15:55:06 +0100 |
---|---|---|
committer | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2018-09-18 15:55:06 +0100 |
commit | 3889c22f161600b2694fbcf45c06b946b08404e9 (patch) | |
tree | 5eec6048fee957d616185a9d8c77fca12260f418 | |
parent | 5ceed9ba8613d292976adf1f9147709c7cdaeddc (diff) |
Fix rubocop offenses created by 5ceed9b
-rw-r--r-- | lib/oxidized/model/cumulus.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/cumulus.rb b/lib/oxidized/model/cumulus.rb index f6f5df4..00c8721 100644 --- a/lib/oxidized/model/cumulus.rb +++ b/lib/oxidized/model/cumulus.rb @@ -89,8 +89,8 @@ class Cumulus < Oxidized::Model cfg :telnet, :ssh do post_login do - if vars(:enable) == true then - cmd "sudo su -", /^\[sudo] password/ + if vars(:enable) == true + cmd "sudo su -", /^\[sudo\] password/ cmd vars(:password) elsif vars(:enable) cmd "su -", /^Password:/ |