summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeimosfr <deimos@deimos.fr>2015-03-26 21:40:36 +0100
committerBrian Coca <brian.coca+git@gmail.com>2015-03-26 18:02:06 -0400
commit290c74d4f41440bdabd3aab367e081e4dce87b65 (patch)
tree8a34edc0fb598ea04504b609be69352b64b8bee1
parenta00056723fe8798bf6b18607a26d73d1a306c610 (diff)
downloadansible-290c74d4f41440bdabd3aab367e081e4dce87b65.tar.gz
fix consul inventory issue (missing method param)
-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)