summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-07-22 17:31:04 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-07-23 12:01:57 -0700
commitedccfd5908607f2c19f3e792b75ac6d990f6a83b (patch)
tree4b6f3e2018cb7c9fc252db70ee8f3be86a4d39d9 /contrib
parentbe1c517f4d7cee64840309f5e1b42b4abbf9f48c (diff)
downloadansible-edccfd5908607f2c19f3e792b75ac6d990f6a83b.tar.gz
Fix undefined variable in libcloud dyn inv script
References #27193
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/apache-libcloud.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/inventory/apache-libcloud.py b/contrib/inventory/apache-libcloud.py
index be1f922c1c..92f799895f 100755
--- a/contrib/inventory/apache-libcloud.py
+++ b/contrib/inventory/apache-libcloud.py
@@ -248,8 +248,7 @@ class LibcloudInventory(object):
node = self.get_node(node_id)
instance_vars = {}
- for key in vars(instance):
- value = getattr(instance, key)
+ for key, value in vars(node).items():
key = self.to_safe('ec2_' + key)
# Handle complex types