diff options
author | deimosfr <deimos@deimos.fr> | 2015-03-26 21:40:36 +0100 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-03-26 18:02:06 -0400 |
commit | 290c74d4f41440bdabd3aab367e081e4dce87b65 (patch) | |
tree | 8a34edc0fb598ea04504b609be69352b64b8bee1 | |
parent | a00056723fe8798bf6b18607a26d73d1a306c610 (diff) | |
download | ansible-290c74d4f41440bdabd3aab367e081e4dce87b65.tar.gz |
fix consul inventory issue (missing method param)
-rwxr-xr-x | plugins/inventory/consul_io.py | 2 |
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) |