summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/packaging/os
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2017-02-24 16:49:43 -0600
committerGitHub <noreply@github.com>2017-02-24 16:49:43 -0600
commit305c88700de7fc17de80b2f58fb6d44180573e61 (patch)
tree7dc877c4c4d6d4d20aba3b8b240c5997ec4475e0 /lib/ansible/modules/packaging/os
parent5d39056379c33e6a8e4f8a7bc837517f271a5495 (diff)
downloadansible-305c88700de7fc17de80b2f58fb6d44180573e61.tar.gz
PEP8 E712 fixes (#21916)
Diffstat (limited to 'lib/ansible/modules/packaging/os')
-rw-r--r--lib/ansible/modules/packaging/os/openbsd_pkg.py4
-rw-r--r--lib/ansible/modules/packaging/os/swdepot.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/ansible/modules/packaging/os/openbsd_pkg.py b/lib/ansible/modules/packaging/os/openbsd_pkg.py
index 85e4d9a6d5..527578bd3d 100644
--- a/lib/ansible/modules/packaging/os/openbsd_pkg.py
+++ b/lib/ansible/modules/packaging/os/openbsd_pkg.py
@@ -302,7 +302,7 @@ def package_latest(names, pkg_spec, module):
# parse out a successful update above. This way we will report a
# successful run when we actually modify something but fail
# otherwise.
- if pkg_spec[name]['changed'] != True:
+ if pkg_spec[name]['changed'] is not True:
if pkg_spec[name]['stderr']:
pkg_spec[name]['rc'] = 1
@@ -614,7 +614,7 @@ def main():
else:
combined_error_message = pkg_spec[n]['stdout']
- if pkg_spec[n]['changed'] == True:
+ if pkg_spec[n]['changed'] is True:
combined_changed = True
# If combined_error_message contains anything at least some part of the
diff --git a/lib/ansible/modules/packaging/os/swdepot.py b/lib/ansible/modules/packaging/os/swdepot.py
index 2b88c985cb..4ea494c213 100644
--- a/lib/ansible/modules/packaging/os/swdepot.py
+++ b/lib/ansible/modules/packaging/os/swdepot.py
@@ -155,7 +155,7 @@ def main():
else:
installed = False
- if ( state == 'present' or state == 'latest' ) and installed == False:
+ if ( state == 'present' or state == 'latest' ) and installed is False:
if module.check_mode:
module.exit_json(changed=True)
rc, output = install_package(module, depot, name)
@@ -167,7 +167,7 @@ def main():
else:
module.fail_json(name=name, msg=output, rc=rc)
- elif state == 'latest' and installed == True:
+ elif state == 'latest' and installed is True:
#Check depot version
rc, version_depot = query_package(module, name, depot)
@@ -189,7 +189,7 @@ def main():
output = "Software package not in repository " + depot
module.fail_json(name=name, msg=output, rc=rc)
- elif state == 'absent' and installed == True:
+ elif state == 'absent' and installed is True:
if module.check_mode:
module.exit_json(changed=True)
rc, output = remove_package(module, name)