mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-22 19:59:07 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -250,7 +250,9 @@ class Swupd:
|
|||
cmd = self._get_cmd(["verify", "--fix"])
|
||||
self._run_cmd(cmd)
|
||||
|
||||
if self.rc == 0 and (self.FILES_REPLACED in self.stdout or self.FILES_FIXED in self.stdout or self.FILES_DELETED in self.stdout):
|
||||
if self.rc == 0 and (
|
||||
self.FILES_REPLACED in self.stdout or self.FILES_FIXED in self.stdout or self.FILES_DELETED in self.stdout
|
||||
):
|
||||
self.changed = True
|
||||
self.msg = "Fix successful"
|
||||
return
|
||||
|
|
@ -275,7 +277,7 @@ def main():
|
|||
),
|
||||
required_one_of=[["name", "update", "verify"]],
|
||||
mutually_exclusive=[["name", "update", "verify"]],
|
||||
supports_check_mode=True
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
swupd = Swupd(module)
|
||||
|
|
@ -302,5 +304,5 @@ def main():
|
|||
module.exit_json(changed=swupd.changed, msg=swupd.msg, stdout=swupd.stdout, stderr=swupd.stderr)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue