diff options
Diffstat (limited to 'lib/oxidized')
-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:/ |