summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_route.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lib_openshift/library/oc_route.py')
-rw-r--r--roles/lib_openshift/library/oc_route.py8
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):