virt-xml: Warn when --update is inapplicable
This commit is contained in:
parent
45c7a0657f
commit
4a58a689db
10
virt-xml
10
virt-xml
|
@ -430,9 +430,13 @@ def main(conn=None):
|
||||||
print_stdout(dev.get_xml_config())
|
print_stdout(dev.get_xml_config())
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
if options.update and active_xmlobj:
|
if options.update:
|
||||||
devs, action = prepare_changes(active_xmlobj, options, parserclass)
|
if active_xmlobj:
|
||||||
update_changes(domain, devs, action, options.confirm)
|
devs, action = prepare_changes(active_xmlobj, options, parserclass)
|
||||||
|
update_changes(domain, devs, action, options.confirm)
|
||||||
|
else:
|
||||||
|
logging.warning(
|
||||||
|
_("The VM is not running, --update is inapplicable."))
|
||||||
if options.define:
|
if options.define:
|
||||||
devs, action = prepare_changes(inactive_xmlobj, options, parserclass)
|
devs, action = prepare_changes(inactive_xmlobj, options, parserclass)
|
||||||
applied = define_changes(conn, inactive_xmlobj,
|
applied = define_changes(conn, inactive_xmlobj,
|
||||||
|
|
Loading…
Reference in New Issue