1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

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
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

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