mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix redeclaration of get_host_info function (#33608)
This fix redeclaration of get_host_info method in linode inventory. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
6dad717a9a
commit
0eb2644c1c
1 changed files with 3 additions and 3 deletions
|
@ -242,7 +242,7 @@ class LinodeInventory(object):
|
||||||
self.push(self.inventory, "linode", dest)
|
self.push(self.inventory, "linode", dest)
|
||||||
|
|
||||||
# Add host info to hostvars
|
# Add host info to hostvars
|
||||||
self.inventory["_meta"]["hostvars"][dest] = self.get_host_info(node)
|
self.inventory["_meta"]["hostvars"][dest] = self._get_host_info(node)
|
||||||
|
|
||||||
def get_node_public_ip(self, node):
|
def get_node_public_ip(self, node):
|
||||||
"""Returns a the public IP address of the node"""
|
"""Returns a the public IP address of the node"""
|
||||||
|
@ -265,9 +265,9 @@ class LinodeInventory(object):
|
||||||
node_id = self.index[self.args.host]
|
node_id = self.index[self.args.host]
|
||||||
node = self.get_node(node_id)
|
node = self.get_node(node_id)
|
||||||
|
|
||||||
return self.json_format_dict(self.get_host_info(node), True)
|
return self.json_format_dict(self._get_host_info(node), True)
|
||||||
|
|
||||||
def get_host_info(self, node):
|
def _get_host_info(self, node):
|
||||||
node_vars = {}
|
node_vars = {}
|
||||||
for direct_attr in [
|
for direct_attr in [
|
||||||
"api_id",
|
"api_id",
|
||||||
|
|
Loading…
Reference in a new issue