From 1d98e7bc05ae213f5a900ef20246bf219d1e188c Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 22 Aug 2013 20:21:02 -0500 Subject: [PATCH] Cleaning up some pep8 issues in the pkgutil module --- library/packaging/pkgutil | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/packaging/pkgutil b/library/packaging/pkgutil index 37a15073b61..27ce73ce4e9 100644 --- a/library/packaging/pkgutil +++ b/library/packaging/pkgutil @@ -148,11 +148,11 @@ def main(): (rc, out, err) = package_install(module, state, name, site) else: if not package_latest(module, name, site): - if module.check_mode: - module.exit_json(changed=True) - (rc, out, err) = package_upgrade(module, name, site) - if len(out) > 75: - out = out[:75] + '...' + if module.check_mode: + module.exit_json(changed=True) + (rc, out, err) = package_upgrade(module, name, site) + if len(out) > 75: + out = out[:75] + '...' elif state == 'absent': if package_installed(module, name):