summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/class/oc_route.py
diff options
context:
space:
mode:
authorEric Wolinetz <ewolinet@redhat.com>2017-01-23 16:08:20 -0600
committerGitHub <noreply@github.com>2017-01-23 16:08:20 -0600
commit066494438d5baff9f555cd56a8bde94df148dc31 (patch)
treee0c802a5af8dc07f0a16b5d41ebea55de4a34d06 /roles/lib_openshift/src/class/oc_route.py
parentd740fd159416783c88839e6e2c2e150eb81b67da (diff)
parentc2bdcebcf9bc8aebba6d09a80c6b5cccdb17786d (diff)
downloadopenshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.gz
openshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.bz2
openshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.xz
openshift-066494438d5baff9f555cd56a8bde94df148dc31.zip
Merge branch 'master' into fix_logging_jks_gen
Diffstat (limited to 'roles/lib_openshift/src/class/oc_route.py')
-rw-r--r--roles/lib_openshift/src/class/oc_route.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/roles/lib_openshift/src/class/oc_route.py b/roles/lib_openshift/src/class/oc_route.py
index 05b1be409..42af2c01c 100644
--- a/roles/lib_openshift/src/class/oc_route.py
+++ b/roles/lib_openshift/src/class/oc_route.py
@@ -88,7 +88,9 @@ class OCRoute(OpenShiftCLI):
files['key']['value'],
params['host'],
params['tls_termination'],
- params['service_name'])
+ params['service_name'],
+ params['wildcard_policy'],
+ params['weight'])
oc_route = OCRoute(rconfig, verbose=params['debug'])
@@ -131,13 +133,13 @@ class OCRoute(OpenShiftCLI):
api_rval = oc_route.create()
if api_rval['returncode'] != 0:
- return {'failed': True, 'results': api_rval, 'state': "present"} # noqa: E501
+ return {'failed': True, 'msg': api_rval, 'state': "present"} # noqa: E501
# return the created object
api_rval = oc_route.get()
if api_rval['returncode'] != 0:
- return {'failed': True, 'results': api_rval, 'state': "present"} # noqa: E501
+ return {'failed': True, 'msg': api_rval, 'state': "present"} # noqa: E501
return {'changed': True, 'results': api_rval, 'state': "present"} # noqa: E501
@@ -152,13 +154,13 @@ class OCRoute(OpenShiftCLI):
api_rval = oc_route.update()
if api_rval['returncode'] != 0:
- return {'failed': True, 'results': api_rval, 'state': "present"} # noqa: E501
+ return {'failed': True, 'msg': api_rval, 'state': "present"} # noqa: E501
# return the created object
api_rval = oc_route.get()
if api_rval['returncode'] != 0:
- return {'failed': True, 'results': api_rval, 'state': "present"} # noqa: E501
+ return {'failed': True, 'msg': api_rval, 'state': "present"} # noqa: E501
return {'changed': True, 'results': api_rval, 'state': "present"} # noqa: E501