Skip to content
Snippets Groups Projects
Commit fd9f9a48 authored by elijah's avatar elijah
Browse files

bugfix: allow 'leap facts update' to work again.

parent e04f0e42
Branches
Tags
No related merge requests found
...@@ -85,10 +85,10 @@ module LeapCli; module Commands ...@@ -85,10 +85,10 @@ module LeapCli; module Commands
SSH.remote_command(nodes) do |ssh, host| SSH.remote_command(nodes) do |ssh, host|
response = ssh.capture(facter_cmd, :log_output => false) response = ssh.capture(facter_cmd, :log_output => false)
if response if response
log 'done', :host => host node = manager.node(host.hostname)
node = manager.node(host)
if node if node
new_facts[node.name] = response.strip new_facts[node.name] = response.strip
log 'done', :host => host.to_s
else else
log :warning, 'Could not find node for hostname %s' % host log :warning, 'Could not find node for hostname %s' % host
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment