diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-08-31 16:52:02 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-08-31 16:52:02 -0400 |
commit | ea413be2146aa0fc1d90b3a2d8536876e938e700 (patch) | |
tree | 12fe5c00387f36b9466441c295b2f69c4c338143 /virt-xml | |
parent | 2b41e130d8f90e85784bd8e29288b07789801d67 (diff) | |
download | virt-manager-ea413be2146aa0fc1d90b3a2d8536876e938e700.tar.gz |
xmlbuilder: Rename get_xml_config -> get_xml
The config part is redundant. Should have done this a long time ago
Diffstat (limited to 'virt-xml')
-rwxr-xr-x | virt-xml | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -235,14 +235,14 @@ def define_changes(conn, inactive_xmlobj, devs, action, confirm): for dev in devs: setup_device(dev) - conn.defineXML(inactive_xmlobj.get_xml_config()) + conn.defineXML(inactive_xmlobj.get_xml()) print_stdout(_("Domain '%s' defined successfully.") % inactive_xmlobj.name) return True def update_changes(domain, devs, action, confirm): for dev in devs: - xml = dev.get_xml_config() + xml = dev.get_xml() if confirm: if action == "hotplug": @@ -276,7 +276,7 @@ def update_changes(domain, devs, action, confirm): def prepare_changes(xmlobj, options, parserclass): - origxml = xmlobj.get_xml_config() + origxml = xmlobj.get_xml() if options.edit != -1: devs = action_edit(xmlobj, options, parserclass) @@ -290,7 +290,7 @@ def prepare_changes(xmlobj, options, parserclass): devs = action_remove_device(xmlobj, options, parserclass) action = "hotunplug" - newxml = xmlobj.get_xml_config() + newxml = xmlobj.get_xml() diff = get_diff(origxml, newxml) if options.print_diff: @@ -427,7 +427,7 @@ def main(conn=None): devs = action_build_xml(conn, options, parserclass) for dev in devs: # pylint: disable=no-member - print_stdout(dev.get_xml_config()) + print_stdout(dev.get_xml()) return 0 if options.update: |