diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2016-10-20 08:10:51 -0700 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2016-10-20 08:14:56 -0700 |
commit | b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1 (patch) | |
tree | a41be3f29a3f38742d61b834d8923edf0801c787 /roles | |
parent | 9075e50ca05037039fc0bfb0742aaf5f5f4ecafb (diff) | |
download | openshift-b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1.tar.gz openshift-b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1.tar.bz2 openshift-b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1.tar.xz openshift-b5f46cdfd4e046ba4d895db5ec0f4d00a28e17f1.zip |
Don't freak out if the oc command doesn't exist.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_certificate_expiry/library/openshift_cert_expiry.py | 6 |
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, |