diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-02-24 16:46:06 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-02-28 09:29:21 -0500 |
commit | e0090381732d43de74715b9d41480b3c43391783 (patch) | |
tree | 322be180faf601d1cbc5f9243e05d852920ddfe5 /roles/lib_openshift/library | |
parent | 1629eb0af60e14f70f942b66a6c4c37e875dabe1 (diff) | |
download | openshift-e0090381732d43de74715b9d41480b3c43391783.tar.gz openshift-e0090381732d43de74715b9d41480b3c43391783.tar.bz2 openshift-e0090381732d43de74715b9d41480b3c43391783.tar.xz openshift-e0090381732d43de74715b9d41480b3c43391783.zip |
Adding support for a route with certs and reencrypt.
Diffstat (limited to 'roles/lib_openshift/library')
-rw-r--r-- | roles/lib_openshift/library/oc_route.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_route.py b/roles/lib_openshift/library/oc_route.py index 9d95fcdbb..e40e21e8f 100644 --- a/roles/lib_openshift/library/oc_route.py +++ b/roles/lib_openshift/library/oc_route.py @@ -1594,7 +1594,13 @@ class OCRoute(OpenShiftCLI): def update(self): '''update the object''' - # need to update the tls information and the service name + # when the host attribute is being updated, we need to delete and recreate + if self.config.host != self.route.host: + import time + self.delete() + time.sleep(3) + return self.create() + return self._replace_content(self.kind, self.config.name, self.config.data) def needs_update(self): |