Move console watcher stop try up
Could cause an exception if d_domain is not defined yet.
This commit is contained in:
parent
772807deb3
commit
df277edf1c
|
@ -217,13 +217,13 @@ def entrypoint():
|
||||||
|
|
||||||
# Stop console logging on all VMs
|
# Stop console logging on all VMs
|
||||||
logger.out('Stopping domain console watchers', state='s')
|
logger.out('Stopping domain console watchers', state='s')
|
||||||
if d_domain is not None:
|
try:
|
||||||
for domain in d_domain:
|
if d_domain is not None:
|
||||||
if d_domain[domain].getnode() == config['node_hostname']:
|
for domain in d_domain:
|
||||||
try:
|
if d_domain[domain].getnode() == config['node_hostname']:
|
||||||
d_domain[domain].console_log_instance.stop()
|
d_domain[domain].console_log_instance.stop()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Force into secondary coordinator state if needed
|
# Force into secondary coordinator state if needed
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue