Azure inventory sync!

This commit is contained in:
Luke Sneeringer
2014-07-29 13:06:27 -05:00
parent 504b810418
commit cf96240556
4 changed files with 108 additions and 38 deletions

View File

@@ -425,6 +425,11 @@ def load_inventory_source(source, all_group=None, group_filter_re=None,
'''
Load inventory from given source directory or file.
'''
# Sanity check: We need the "azure" module to be titled "windows_azure.py",
# because it depends on the "azure" package from PyPI, and naming the
# module the same way makes the importer sad.
source = source.replace('azure', 'windows_azure')
logger.debug('Analyzing type of source: %s', source)
original_all_group = all_group
if not os.path.exists(source):