2
0
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:
Jarrod Johnson 2018-12-11 09:17:08 -05:00
parent 8197c750bb
commit 5831be091a

View File

@ -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)