zephyr_mirror: Small logic fix in add_humbug_subscriptions.
(imported from commit bbcb7710310186612a8e7661a20b8b6558614758)
This commit is contained in:
parent
e112db6702
commit
eaf69717c1
|
@ -426,6 +426,10 @@ def add_humbug_subscriptions(verbose):
|
|||
zephyr_subscriptions.add(instance)
|
||||
continue
|
||||
elif cls == "mail" and instance == "inbox":
|
||||
# We forward mail zephyrs, so no need to print a warning.
|
||||
continue
|
||||
elif len(cls) > 30:
|
||||
skipped.add((cls, instance, recipient, "Class longer than 30 characters"))
|
||||
continue
|
||||
elif instance != "*":
|
||||
skipped.add((cls, instance, recipient, "Unsupported non-* instance"))
|
||||
|
@ -433,9 +437,6 @@ def add_humbug_subscriptions(verbose):
|
|||
elif recipient != "*":
|
||||
skipped.add((cls, instance, recipient, "Unsupported non-* recipient."))
|
||||
continue
|
||||
if len(cls) > 30:
|
||||
skipped.add((cls, instance, recipient, "Class longer than 30 characters"))
|
||||
continue
|
||||
zephyr_subscriptions.add(cls)
|
||||
|
||||
if len(zephyr_subscriptions) != 0:
|
||||
|
|
Loading…
Reference in a new issue