diff --git a/confluent_client/bin/nodediscover b/confluent_client/bin/nodediscover index 2a504ab7..85b8449b 100755 --- a/confluent_client/bin/nodediscover +++ b/confluent_client/bin/nodediscover @@ -270,7 +270,8 @@ async def list_discovery(options, session): print(row) async def clear_discovery(options, session): - async for mac in list_matching_macs(options, session): + allmacs = [x async for x in list_matching_macs(options, session)] + for mac in allmacs: async for res in session.delete('/discovery/by-mac/{0}'.format(mac)): if 'deleted' in res: print('Cleared info for {0}'.format(res['deleted'])) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 64010700..282d5c5e 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -1615,9 +1615,7 @@ async def rescan(): if scanner: return else: - print("begin") scanner = util.spawn(blocking_scan()) - print("bg") await remotescan() async def remotescan():