Merge pull request #10551 from deimosfr/devel
fix consul inventory issue (missing method param) merging as this does not seem to have worked before
This commit is contained in:
commit
75f933cf64
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue