mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
In register_peers, only check non-empty flags for the 1-cycle check
This commit is contained in:
parent
db999b82ed
commit
7a9fca7f77
@ -37,7 +37,7 @@ class Command(BaseCommand):
|
||||
|
||||
# No 1-cycles
|
||||
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}.")
|
||||
|
||||
# No 2-cycles
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user