summaryrefslogtreecommitdiffstats
path: root/roles/openshift_management
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2017-10-20 16:17:41 -0400
committerTim Bielawa <tbielawa@redhat.com>2017-10-20 16:20:09 -0400
commitac62ea0066934877f94e99bda6ec53a9c03ababb (patch)
tree82424354d03a57876780dbe0f7357928a27a39f3 /roles/openshift_management
parent6c3a0373e1a48f730e9a279a255c0f1a58613cc7 (diff)
downloadopenshift-ac62ea0066934877f94e99bda6ec53a9c03ababb.tar.gz
openshift-ac62ea0066934877f94e99bda6ec53a9c03ababb.tar.bz2
openshift-ac62ea0066934877f94e99bda6ec53a9c03ababb.tar.xz
openshift-ac62ea0066934877f94e99bda6ec53a9c03ababb.zip
Fix lint
Diffstat (limited to 'roles/openshift_management')
-rw-r--r--roles/openshift_management/filter_plugins/oo_management_filters.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/openshift_management/filter_plugins/oo_management_filters.py b/roles/openshift_management/filter_plugins/oo_management_filters.py
index 06bc0796d..3b7013d9a 100644
--- a/roles/openshift_management/filter_plugins/oo_management_filters.py
+++ b/roles/openshift_management/filter_plugins/oo_management_filters.py
@@ -1,5 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+"""
+Filter methods for the management role
+"""
+
def oo_filter_container_providers(results):
"""results - the result from posting the API calls for adding new
@@ -8,14 +12,15 @@ providers"""
for result in results:
if 'results' in result['json']:
# We got an OK response
- r = result['json']['results'][0]
- all_results.append("Provider '{}' - Added successfully".format(r['name']))
+ res = result['json']['results'][0]
+ all_results.append("Provider '{}' - Added successfully".format(res['name']))
elif 'error' in result['json']:
# This was a problem
all_results.append("Provider '{}' - Failed to add. Message: {}".format(
result['item']['name'], result['json']['error']['message']))
return all_results
+
class FilterModule(object):
""" Custom ansible filter mapping """