From edccfd5908607f2c19f3e792b75ac6d990f6a83b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sat, 22 Jul 2017 17:31:04 -0700 Subject: [PATCH] Fix undefined variable in libcloud dyn inv script References #27193 --- contrib/inventory/apache-libcloud.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/inventory/apache-libcloud.py b/contrib/inventory/apache-libcloud.py index be1f922c1cf..92f799895fe 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