Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mlow committed Oct 9, 2022
1 parent 8bd508c commit 6fec2dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <source> elements
# user networks don't have a <source> element
Expand All @@ -491,6 +492,7 @@ def define(self, xml):
'user': None,
}


def handle_define(module, v):
''' handle `command: define` '''
xml = module.params.get('xml', None)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6fec2dd

Please sign in to comment.