diff --git a/action_plugins/serverdensity.py b/action_plugins/serverdensity.py index 5c2cdc5f839d2f2e6ceabfbfbe3ed3e85aee80af..bcbe941810f9acd8e9b73dab6a76cbfea1340e9d 100644 --- a/action_plugins/serverdensity.py +++ b/action_plugins/serverdensity.py @@ -67,7 +67,7 @@ class ActionModule(object): vv('Ensure hosts...') for host in self.runner.host_set: vv('- ' + host) - host_vars = self.runner.inventory.get_variables(host) + host_vars = inject['hostvars'][host] facts = host_vars.get('ansible_facts', {}) location = host_vars.get('location') if not location: