Don't block stopping on non-start state

This commit is contained in:
Joshua Boniface 2019-03-16 23:32:13 -04:00
parent 2782120f94
commit 15c832650d
1 changed files with 0 additions and 3 deletions

View File

@ -356,9 +356,6 @@ def stop_vm(zk_conn, domain):
# Get state and verify we're OK to proceed # Get state and verify we're OK to proceed
current_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(dom_uuid)) current_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(dom_uuid))
if current_state != 'start':
common.stopZKConnection(zk_conn)
return False, 'ERROR: VM "{}" is not in "start" state!'.format(dom_uuid)
# Set the VM to start # Set the VM to start
click.echo('Forcibly stopping VM "{}".'.format(dom_uuid)) click.echo('Forcibly stopping VM "{}".'.format(dom_uuid))