mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Cherry-pick fix for WinRM listenr to AzureRM inventory script.
(ref: https://github.com/ansible/ansible/pull/37499/)
This commit is contained in:
@@ -630,7 +630,7 @@ class AzureInventory(object):
|
|||||||
if machine.os_profile.windows_configuration.win_rm.listeners is not None:
|
if machine.os_profile.windows_configuration.win_rm.listeners is not None:
|
||||||
host_vars['windows_rm']['listeners'] = []
|
host_vars['windows_rm']['listeners'] = []
|
||||||
for listener in machine.os_profile.windows_configuration.win_rm.listeners:
|
for listener in machine.os_profile.windows_configuration.win_rm.listeners:
|
||||||
host_vars['windows_rm']['listeners'].append(dict(protocol=listener.protocol,
|
host_vars['windows_rm']['listeners'].append(dict(protocol=listener.protocol.name,
|
||||||
certificate_url=listener.certificate_url))
|
certificate_url=listener.certificate_url))
|
||||||
|
|
||||||
for interface in machine.network_profile.network_interfaces:
|
for interface in machine.network_profile.network_interfaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user