dom0/qvm-block: fix and clarify error message
This commit is contained in:
parent
5347637051
commit
96503fde2f
@ -83,7 +83,7 @@ def main():
|
|||||||
parser.error ("Invalid VM name: %s" % args[0])
|
parser.error ("Invalid VM name: %s" % args[0])
|
||||||
# FIXME: here we assume that device is always in form "domain:dev", which can be changed in the future
|
# FIXME: here we assume that device is always in form "domain:dev", which can be changed in the future
|
||||||
if args[1].find(":") < 0:
|
if args[1].find(":") < 0:
|
||||||
parser.error ("Invalid device syntax" % args[1])
|
parser.error ("Invalid device syntax (missing VM name): %s" % args[1])
|
||||||
if options.do_file_attach:
|
if options.do_file_attach:
|
||||||
dev = {}
|
dev = {}
|
||||||
(dev['vm'], dev['device']) = args[1].split(":")
|
(dev['vm'], dev['device']) = args[1].split(":")
|
||||||
|
Loading…
Reference in New Issue
Block a user