diff options
-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 |