From fd9f9a485ef29142e342eaea81275b0e9530fa09 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 1 Nov 2016 11:40:22 -0700 Subject: bugfix: allow 'leap facts update' to work again. --- lib/leap_cli/commands/facts.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3