summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_certificate_expiry/library/openshift_cert_expiry.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py
index 1d0507537..2cdb87dc1 100644
--- a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py
+++ b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py
@@ -531,6 +531,9 @@ an OpenShift Container Platform cluster
except TypeError:
# YAML couldn't load the result, this is not a master
pass
+ except OSError:
+ # The OC command doesn't exist here. Move along.
+ pass
else:
(cert_subject,
cert_expiry_date,
@@ -557,6 +560,9 @@ an OpenShift Container Platform cluster
except TypeError:
# YAML couldn't load the result, this is not a master
pass
+ except OSError:
+ # The OC command doesn't exist here. Move along.
+ pass
else:
(cert_subject,
cert_expiry_date,