print debugging
This commit is contained in:
parent
2ff7a26bf1
commit
288d0c9630
@ -2,6 +2,7 @@ import subprocess
|
|||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
|
import pprint
|
||||||
|
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@ -157,7 +158,6 @@ class ShellScriptSpoke(VirtualizationInterface):
|
|||||||
|
|
||||||
#current_app.logger.info(f"list_of_networks: {json.dumps(list_of_networks)}")
|
#current_app.logger.info(f"list_of_networks: {json.dumps(list_of_networks)}")
|
||||||
|
|
||||||
networks = dict()
|
|
||||||
vms_by_id = dict()
|
vms_by_id = dict()
|
||||||
vm_id_by_mac = dict()
|
vm_id_by_mac = dict()
|
||||||
for network in list_of_networks:
|
for network in list_of_networks:
|
||||||
@ -203,6 +203,12 @@ class ShellScriptSpoke(VirtualizationInterface):
|
|||||||
else:
|
else:
|
||||||
current_app.logger.warn(f"get_all_by_host_and_network: {status['mac-address']} not in vm_id_by_mac")
|
current_app.logger.warn(f"get_all_by_host_and_network: {status['mac-address']} not in vm_id_by_mac")
|
||||||
|
|
||||||
|
|
||||||
|
pprint.pprint("vms_by_id")
|
||||||
|
pprint.pprint(vms_by_id)
|
||||||
|
pprint.pprint("vm_id_by_mac")
|
||||||
|
pprint.pprint(vm_id_by_mac)
|
||||||
|
|
||||||
networks = dict()
|
networks = dict()
|
||||||
for vm in vms_by_id:
|
for vm in vms_by_id:
|
||||||
if vm['network'] not in networks:
|
if vm['network'] not in networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user