From 290c74d4f41440bdabd3aab367e081e4dce87b65 Mon Sep 17 00:00:00 2001 From: deimosfr Date: Thu, 26 Mar 2015 21:40:36 +0100 Subject: [PATCH] fix consul inventory issue (missing method param) --- plugins/inventory/consul_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/consul_io.py b/plugins/inventory/consul_io.py index 46d47fd3bf5..e0ff3fbbebd 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)