From 4602ca7bf48a7b5f75693217c466ec85c9aa4beb Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 25 Feb 2015 03:36:06 +0300 Subject: [PATCH] pkgutil.py syntax fix --- lib/ansible/modules/extras/packaging/os/pkgutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/pkgutil.py b/lib/ansible/modules/extras/packaging/os/pkgutil.py index 0204bbae987..635617b4efe 100644 --- a/lib/ansible/modules/extras/packaging/os/pkgutil.py +++ b/lib/ansible/modules/extras/packaging/os/pkgutil.py @@ -165,9 +165,9 @@ def main(): if rc is None: # pkgutil was not executed because the package was already present/absent result['changed'] = False - elif rc == 0 + elif rc == 0: result['changed'] = True - else + else: result['changed'] = False result['failed'] = True