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:
parent
067b908415
commit
92301f7451
1 changed files with 3 additions and 2 deletions
|
@ -180,13 +180,14 @@ def get_publishers(module):
|
|||
publishers[name]['origin'] = []
|
||||
publishers[name]['mirror'] = []
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue