summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/cumulus.rb4
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:/