1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix undefined variable in libcloud dyn inv script

References #27193
This commit is contained in:
Toshio Kuratomi 2017-07-22 17:31:04 -07:00
parent be1c517f4d
commit edccfd5908

View file

@ -248,8 +248,7 @@ class LibcloudInventory(object):
node = self.get_node(node_id) node = self.get_node(node_id)
instance_vars = {} instance_vars = {}
for key in vars(instance): for key, value in vars(node).items():
value = getattr(instance, key)
key = self.to_safe('ec2_' + key) key = self.to_safe('ec2_' + key)
# Handle complex types # Handle complex types