mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Handle empty IPS publishers (#2047)
It turns out it's possible to set up a publisher with no URIs. Handle this gracefully.
This commit is contained in:
@@ -179,13 +179,14 @@ def get_publishers(module):
|
||||
publishers[name]['origin'] = []
|
||||
publishers[name]['mirror'] = []
|
||||
|
||||
publishers[name][values['type']].append(values['uri'])
|
||||
if values['type'] is not None:
|
||||
publishers[name][values['type']].append(values['uri'])
|
||||
|
||||
return publishers
|
||||
|
||||
|
||||
def unstringify(val):
|
||||
if val == "-":
|
||||
if val == "-" or val == '':
|
||||
return None
|
||||
elif val == "true":
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user