From b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1 Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Thu, 20 Oct 2016 08:10:51 -0700 Subject: Don't freak out if the oc command doesn't exist. --- roles/openshift_certificate_expiry/library/openshift_cert_expiry.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/openshift_certificate_expiry') 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, -- cgit v1.2.1