From 670e93904c7fe35dafd07148a83cd4ccaf43953d Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 9 Jun 2017 14:25:30 +0200 Subject: Improve code readability --- roles/openshift_health_checker/openshift_checks/mixins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/openshift_health_checker/openshift_checks/mixins.py b/roles/openshift_health_checker/openshift_checks/mixins.py index 1181784ab..7f3d78cc4 100644 --- a/roles/openshift_health_checker/openshift_checks/mixins.py +++ b/roles/openshift_health_checker/openshift_checks/mixins.py @@ -50,4 +50,6 @@ class DockerHostMixin(object): "Unable to install required packages on this host:\n" " {deps}\n{msg}" ).format(deps=',\n '.join(self.dependencies), msg=msg) - return msg, result.get("failed") or result.get("rc", 0) != 0, result.get("changed") + failed = result.get("failed", False) or result.get("rc", 0) != 0 + changed = result.get("changed", False) + return msg, failed, changed -- cgit v1.2.3