diff options
Diffstat (limited to 'roles/lib_openshift/library/oc_service.py')
-rw-r--r-- | roles/lib_openshift/library/oc_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/library/oc_service.py b/roles/lib_openshift/library/oc_service.py index a9adff0b1..a9baef765 100644 --- a/roles/lib_openshift/library/oc_service.py +++ b/roles/lib_openshift/library/oc_service.py @@ -1053,7 +1053,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 @@ -1062,7 +1062,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: |