qvm-start: exit if domain running and no --skip-if-running
This commit is contained in:
parent
0eec5cb8c9
commit
76c4a6421b
@ -147,6 +147,10 @@ def main(args=None, app=None):
|
|||||||
for domain in args.domains:
|
for domain in args.domains:
|
||||||
if args.skip_if_running and domain.is_running():
|
if args.skip_if_running and domain.is_running():
|
||||||
continue
|
continue
|
||||||
|
elif domain.is_running():
|
||||||
|
exit_code = 1
|
||||||
|
parser.print_error("domain is already running")
|
||||||
|
return exit_code
|
||||||
drive_assignment = None
|
drive_assignment = None
|
||||||
try:
|
try:
|
||||||
if args.drive:
|
if args.drive:
|
||||||
|
Loading…
Reference in New Issue
Block a user