diff options
author | elijah <elijah@riseup.net> | 2016-11-01 11:40:22 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-11-01 11:40:22 -0700 |
commit | fd9f9a485ef29142e342eaea81275b0e9530fa09 (patch) | |
tree | aea1d259115d22db1a78c9f96a22a135e85972ab /lib/leap_cli | |
parent | e04f0e42c24ee37b55cfd23761c73471e0eeb816 (diff) |
bugfix: allow 'leap facts update' to work again.
Diffstat (limited to 'lib/leap_cli')
-rw-r--r-- | lib/leap_cli/commands/facts.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/facts.rb b/lib/leap_cli/commands/facts.rb index 6c954ee8..74ef463d 100644 --- a/lib/leap_cli/commands/facts.rb +++ b/lib/leap_cli/commands/facts.rb @@ -85,10 +85,10 @@ module LeapCli; module Commands SSH.remote_command(nodes) do |ssh, host| response = ssh.capture(facter_cmd, :log_output => false) if response - log 'done', :host => host - node = manager.node(host) + node = manager.node(host.hostname) if node new_facts[node.name] = response.strip + log 'done', :host => host.to_s else log :warning, 'Could not find node for hostname %s' % host end |