mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
Fix an issue where host could be None during an instance bootup process
thus causing an error in the inventory import
This commit is contained in:
@@ -103,7 +103,8 @@ class AzureInventory(object):
|
|||||||
if len(data) > 0:
|
if len(data) > 0:
|
||||||
for host in set(reduce(lambda x, y: x + y,
|
for host in set(reduce(lambda x, y: x + y,
|
||||||
[i for i in data.values()])):
|
[i for i in data.values()])):
|
||||||
_meta[host] = self.get_host(host, jsonify=False)
|
if host is not None:
|
||||||
|
_meta[host] = self.get_host(host, jsonify=False)
|
||||||
data['_meta'] = _meta
|
data['_meta'] = _meta
|
||||||
|
|
||||||
# JSONify the data.
|
# JSONify the data.
|
||||||
|
|||||||
Reference in New Issue
Block a user