qvm-start: exit if domain running and no --skip-if-running

This commit is contained in:
Mindy Preston 2017-09-27 17:15:52 -05:00
parent 0eec5cb8c9
commit 76c4a6421b

View File

@ -147,6 +147,10 @@ def main(args=None, app=None):
for domain in args.domains:
if args.skip_if_running and domain.is_running():
continue
elif domain.is_running():
exit_code = 1
parser.print_error("domain is already running")
return exit_code
drive_assignment = None
try:
if args.drive: