From 6fec2ddbb910342c716653cbab071705730da7c7 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 9 Oct 2022 14:29:18 -0600 Subject: [PATCH] Fix lint errors --- plugins/modules/virt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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