mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
In register_peers, only check non-empty flags for the 1-cycle check
This commit is contained in:
@@ -37,7 +37,7 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
# No 1-cycles
|
# No 1-cycles
|
||||||
for collection in ('peers', 'disconnect', 'exact'):
|
for collection in ('peers', 'disconnect', 'exact'):
|
||||||
if options['source'] in options[collection]:
|
if options[collection] and options['source'] in options[collection]:
|
||||||
raise CommandError(f"Source node {options['source']} may not also be in --{collection}.")
|
raise CommandError(f"Source node {options['source']} may not also be in --{collection}.")
|
||||||
|
|
||||||
# No 2-cycles
|
# No 2-cycles
|
||||||
|
|||||||
Reference in New Issue
Block a user