From a326d2444671a8f9f1999d94d89b971fd97ca153 Mon Sep 17 00:00:00 2001 From: Aaron Rice Date: Sun, 9 Feb 2014 16:33:34 +0000 Subject: [PATCH] Save api id to index as an int instead of a list --- plugins/inventory/linode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inventory/linode.py b/plugins/inventory/linode.py index 472b56c8bcc..b4bcb1fad61 100755 --- a/plugins/inventory/linode.py +++ b/plugins/inventory/linode.py @@ -132,7 +132,7 @@ class LinodeInventory(object): if os.path.isfile(self.cache_path_index): return True return False - + def read_settings(self): """Reads the settings from the .ini file.""" config = ConfigParser.SafeConfigParser() @@ -204,7 +204,7 @@ class LinodeInventory(object): dest = node.label # Add to index - self.index[dest] = [node.api_id] + self.index[dest] = node.api_id # Inventory: Group by node ID (always a group of 1) self.inventory[node.api_id] = [dest]