mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 18:59:06 +00:00
Auto-rescan on missed manual discovery
Same as in the bulk discover support.
This commit is contained in:
parent
8197c750bb
commit
5831be091a
@ -276,6 +276,10 @@ def assign_discovery(options, session):
|
||||
if abort:
|
||||
sys.exit(1)
|
||||
matches = list_matching_macs(options, session)
|
||||
if not matches:
|
||||
# Do a rescan to catch missing requested data
|
||||
blocking_scan(session)
|
||||
matches = list_matching_macs(options, session)
|
||||
if not matches:
|
||||
sys.stderr.write("No matching discovery candidates found\n")
|
||||
sys.exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user