summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/cumulus.rb
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-09-18 15:55:06 +0100
committerNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-09-18 15:55:06 +0100
commit3889c22f161600b2694fbcf45c06b946b08404e9 (patch)
tree5eec6048fee957d616185a9d8c77fca12260f418 /lib/oxidized/model/cumulus.rb
parent5ceed9ba8613d292976adf1f9147709c7cdaeddc (diff)
Fix rubocop offenses created by 5ceed9b
Diffstat (limited to 'lib/oxidized/model/cumulus.rb')
-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:/