summaryrefslogtreecommitdiff
path: root/lib/leap_cli/macros/hosts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/macros/hosts.rb')
-rw-r--r--lib/leap_cli/macros/hosts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/macros/hosts.rb b/lib/leap_cli/macros/hosts.rb
index 541bbc13..963857ae 100644
--- a/lib/leap_cli/macros/hosts.rb
+++ b/lib/leap_cli/macros/hosts.rb
@@ -17,7 +17,7 @@ module LeapCli
node_list = node_list['environment' => '!local']
end
node_list.map {|name, n|
- [n.ip_address, (global.facts[name]||{})['ec2_public_ipv4']]
+ [n.ip_address, (manager.facts[name]||{})['ec2_public_ipv4']]
}.flatten.compact.uniq
end