summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-03-26 17:58:50 -0400
committerBrian Coca <bcoca@ansible.com>2015-03-26 17:58:50 -0400
commit75f933cf6454d770ed782e7f931090954cc8dbf9 (patch)
treeacfafc441312772fba3230c35d1485fc52e0371d
parentb7936009c2bc279e1175da8ec39eb5143f753204 (diff)
parent7b63a5799343c9a79679388416be99e1ef671a52 (diff)
downloadansible-75f933cf6454d770ed782e7f931090954cc8dbf9.tar.gz
Merge pull request #10551 from deimosfr/devel
fix consul inventory issue (missing method param) merging as this does not seem to have worked before
-rwxr-xr-xplugins/inventory/consul_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/inventory/consul_io.py b/plugins/inventory/consul_io.py
index 46d47fd3bf..e0ff3fbbeb 100755
--- a/plugins/inventory/consul_io.py
+++ b/plugins/inventory/consul_io.py
@@ -212,7 +212,7 @@ class ConsulInventory(object):
'''loads the data for a sinle node adding it to various groups based on
metadata retrieved from the kv store and service availablity'''
- index, node_data = self.consul_api.catalog.node(node, datacenter)
+ index, node_data = self.consul_api.catalog.node(node, dc=datacenter)
node = node_data['Node']
self.add_node_to_map(self.nodes, 'all', node)
self.add_metadata(node_data, "consul_datacenter", datacenter)