Support passing instance filters to tower inventory src

* Switch ignore ssl errors to default on
* Application inventory source defaults for Tower src
This commit is contained in:
Matthew Jones
2017-10-25 16:56:26 -04:00
parent 6c597ad165
commit fdc7f58bb4
5 changed files with 15 additions and 3 deletions
+2
View File
@@ -1912,6 +1912,8 @@ class RunInventoryUpdate(BaseTask):
for env_k in inventory_update.source_vars_dict:
if str(env_k) not in env and str(env_k) not in settings.INV_ENV_VARIABLE_BLACKLIST:
env[str(env_k)] = unicode(inventory_update.source_vars_dict[env_k])
elif inventory_update.source == 'tower':
env['TOWER_INVENTORY'] = inventory_update.instance_filters
elif inventory_update.source == 'file':
raise NotImplementedError('Cannot update file sources through the task system.')
# add private_data_files