summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/cumulus.rb
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-09-18 16:30:24 +0100
committerNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-09-18 16:30:24 +0100
commitc1fa055107398fd8601c961a60731b9ab953284a (patch)
treeb1286c5d5d5e674ceff4beccb4000ce212f81ca9 /lib/oxidized/model/cumulus.rb
parentb11087c30cb950b681c5891c3c42ab874b5b74bc (diff)
Fix source of password typo in 5ceed9bsudo-for-cumulus
Diffstat (limited to 'lib/oxidized/model/cumulus.rb')
-rw-r--r--lib/oxidized/model/cumulus.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/cumulus.rb b/lib/oxidized/model/cumulus.rb
index 00c8721..6e4b204 100644
--- a/lib/oxidized/model/cumulus.rb
+++ b/lib/oxidized/model/cumulus.rb
@@ -91,7 +91,7 @@ class Cumulus < Oxidized::Model
post_login do
if vars(:enable) == true
cmd "sudo su -", /^\[sudo\] password/
- cmd vars(:password)
+ cmd @node.auth[:password]
elsif vars(:enable)
cmd "su -", /^Password:/
cmd vars(:enable)