diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-06-16 15:13:54 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-06-16 16:37:48 -0400 |
commit | 0221471e4f898d083ccdda8234041bd72e4d6a79 (patch) | |
tree | 2d0e3797bc1913cd06316094d9771b0ecd85d158 /virt-xml | |
parent | 9ed926a8984ee75a1cef1ef5ddb03ca19962b38b (diff) | |
download | virt-manager-0221471e4f898d083ccdda8234041bd72e4d6a79.tar.gz |
virt-xml: If no XML diff is generated, explicitly warn
Diffstat (limited to 'virt-xml')
-rwxr-xr-x | virt-xml | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -333,6 +333,10 @@ def prepare_changes(xmlobj, options, parserclass): newxml = xmlobj.get_xml() diff = get_diff(origxml, newxml) + if not diff: + logging.warning(_("No XML diff was generated. The requested " + "changes will have no effect.")) + if options.print_diff: if diff: print_stdout(diff) |