summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_route.py
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-08 10:23:48 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-08 10:23:48 -0500
commit04ea66c4ab6cd1e5daa217526d7c9591aa164f10 (patch)
treeaf513224a29ed2d6d0e7f73a22428dec65258997 /roles/lib_openshift/library/oc_route.py
parent76b99082bddf9f8e24063e5d2553b144e13d5984 (diff)
downloadopenshift-04ea66c4ab6cd1e5daa217526d7c9591aa164f10.tar.gz
openshift-04ea66c4ab6cd1e5daa217526d7c9591aa164f10.tar.bz2
openshift-04ea66c4ab6cd1e5daa217526d7c9591aa164f10.tar.xz
openshift-04ea66c4ab6cd1e5daa217526d7c9591aa164f10.zip
Added temporary kubeconfig file. Fixed tests to coincide with tmpfile.
Diffstat (limited to 'roles/lib_openshift/library/oc_route.py')
-rw-r--r--roles/lib_openshift/library/oc_route.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/library/oc_route.py b/roles/lib_openshift/library/oc_route.py
index 5a4a09e7b..7c4fa1fbd 100644
--- a/roles/lib_openshift/library/oc_route.py
+++ b/roles/lib_openshift/library/oc_route.py
@@ -1051,7 +1051,7 @@ class Utils(object):
@staticmethod
def create_tmpfile_copy(inc_file):
'''create a temporary copy of a file'''
- tmpfile = Utils.create_tmpfile()
+ tmpfile = Utils.create_tmpfile('lib_openshift-')
Utils._write(tmpfile, open(inc_file).read())
# Cleanup the tmpfile
@@ -1060,7 +1060,7 @@ class Utils(object):
return tmpfile
@staticmethod
- def create_tmpfile(prefix=None):
+ def create_tmpfile(prefix='tmp'):
''' Generates and returns a temporary file name '''
with tempfile.NamedTemporaryFile(prefix=prefix, delete=False) as tmp: