Commit a326d244 by Aaron Rice

Save api id to index as an int instead of a list

parent 3f2f5fec
...@@ -132,7 +132,7 @@ class LinodeInventory(object): ...@@ -132,7 +132,7 @@ class LinodeInventory(object):
if os.path.isfile(self.cache_path_index): if os.path.isfile(self.cache_path_index):
return True return True
return False return False
def read_settings(self): def read_settings(self):
"""Reads the settings from the .ini file.""" """Reads the settings from the .ini file."""
config = ConfigParser.SafeConfigParser() config = ConfigParser.SafeConfigParser()
...@@ -204,7 +204,7 @@ class LinodeInventory(object): ...@@ -204,7 +204,7 @@ class LinodeInventory(object):
dest = node.label dest = node.label
# Add to index # 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) # Inventory: Group by node ID (always a group of 1)
self.inventory[node.api_id] = [dest] self.inventory[node.api_id] = [dest]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment