From 531e5b51379bd6f4a71c02116a9b333a8b0dbe5a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 21 Mar 2018 10:46:30 -0400 Subject: [PATCH] Cherry-pick fix for WinRM listenr to AzureRM inventory script. (ref: https://github.com/ansible/ansible/pull/37499/) --- awx/plugins/inventory/azure_rm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/plugins/inventory/azure_rm.py b/awx/plugins/inventory/azure_rm.py index a52fdec4ff..513e06f30b 100755 --- a/awx/plugins/inventory/azure_rm.py +++ b/awx/plugins/inventory/azure_rm.py @@ -630,7 +630,7 @@ class AzureInventory(object): if machine.os_profile.windows_configuration.win_rm.listeners is not None: host_vars['windows_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)) for interface in machine.network_profile.network_interfaces: