Call parent get_plugin_env for foreman

This commit is contained in:
Jim Ladd
2020-03-31 12:51:33 -07:00
committed by AlanCoding
parent c3f2b3e44d
commit 6b015c9d81

View File

@@ -2662,7 +2662,7 @@ class satellite6(PluginFileInjector):
# this assumes that this is merged
# https://github.com/ansible/ansible/pull/52693
credential = inventory_update.get_cloud_credential()
ret = {}
ret = super(satellite6, self).get_plugin_env(inventory_update, private_data_dir, private_data_files)
if credential:
ret['FOREMAN_SERVER'] = credential.get_input('host', default='')
ret['FOREMAN_USER'] = credential.get_input('username', default='')