summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-24 16:46:06 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-28 09:29:21 -0500
commite0090381732d43de74715b9d41480b3c43391783 (patch)
tree322be180faf601d1cbc5f9243e05d852920ddfe5 /roles/lib_openshift/src
parent1629eb0af60e14f70f942b66a6c4c37e875dabe1 (diff)
downloadopenshift-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/src')
-rw-r--r--roles/lib_openshift/src/class/oc_route.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/lib_openshift/src/class/oc_route.py b/roles/lib_openshift/src/class/oc_route.py
index 448457292..122cc5fe9 100644
--- a/roles/lib_openshift/src/class/oc_route.py
+++ b/roles/lib_openshift/src/class/oc_route.py
@@ -55,7 +55,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):