diff --git a/plugins/modules/virt.py b/plugins/modules/virt.py index ef31c76..765a0af 100644 --- a/plugins/modules/virt.py +++ b/plugins/modules/virt.py @@ -478,6 +478,7 @@ def define(self, xml): self.__get_conn() return self.conn.define_from_xml(xml) + # A dict of interface types (found in their `type` attribute) to the # corresponding "source" attribute name of their elements # user networks don't have a element @@ -491,6 +492,7 @@ def define(self, xml): 'user': None, } + def handle_define(module, v): ''' handle `command: define` ''' xml = module.params.get('xml', None) @@ -605,7 +607,7 @@ def get_interface_count(_type, source=None): continue if _type not in INTERFACE_SOURCE_ATTRS: - module.warn("Skipping fuzzy MAC matching for interface %i of incoming XML: unsupported interface type '%s'" %( + module.warn("Skipping fuzzy MAC matching for interface %i of incoming XML: unsupported interface type '%s'." % ( interface.getparent().index(interface) + 1, _type )) continue