1
0
Fork 0
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:
Abhijeet Kasurde 2018-01-02 20:54:53 +05:30 committed by ansibot
parent 6dad717a9a
commit 0eb2644c1c

View file

@ -242,7 +242,7 @@ class LinodeInventory(object):
self.push(self.inventory, "linode", dest)
# 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):
"""Returns a the public IP address of the node"""
@ -265,9 +265,9 @@ class LinodeInventory(object):
node_id = self.index[self.args.host]
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 = {}
for direct_attr in [
"api_id",