mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
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())
|
||||
return 0
|
||||
|
||||
if options.update and active_xmlobj:
|
||||
devs, action = prepare_changes(active_xmlobj, options, parserclass)
|
||||
update_changes(domain, devs, action, options.confirm)
|
||||
if options.update:
|
||||
if active_xmlobj:
|
||||
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:
|
||||
devs, action = prepare_changes(inactive_xmlobj, options, parserclass)
|
||||
applied = define_changes(conn, inactive_xmlobj,
|
||||
|
Loading…
Reference in New Issue
Block a user