mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Cleaning up some pep8 issues in the pkgutil module
This commit is contained in:
parent
b33cd0c44f
commit
1d98e7bc05
1 changed files with 5 additions and 5 deletions
|
@ -148,11 +148,11 @@ def main():
|
||||||
(rc, out, err) = package_install(module, state, name, site)
|
(rc, out, err) = package_install(module, state, name, site)
|
||||||
else:
|
else:
|
||||||
if not package_latest(module, name, site):
|
if not package_latest(module, name, site):
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
module.exit_json(changed=True)
|
module.exit_json(changed=True)
|
||||||
(rc, out, err) = package_upgrade(module, name, site)
|
(rc, out, err) = package_upgrade(module, name, site)
|
||||||
if len(out) > 75:
|
if len(out) > 75:
|
||||||
out = out[:75] + '...'
|
out = out[:75] + '...'
|
||||||
|
|
||||||
elif state == 'absent':
|
elif state == 'absent':
|
||||||
if package_installed(module, name):
|
if package_installed(module, name):
|
||||||
|
|
Loading…
Add table
Reference in a new issue