diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-02-22 12:53:21 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-02-22 12:53:21 -0500 |
commit | 5fabd910189a125df2943ef8092ff492f90617a1 (patch) | |
tree | 81b2c11efb61313fa6dda5602c00db8ed1d38da9 /roles/lib_openshift/src | |
parent | 9c49ba4bb0b69604e98fc3dda65f8ccd40f19552 (diff) | |
download | openshift-5fabd910189a125df2943ef8092ff492f90617a1.tar.gz openshift-5fabd910189a125df2943ef8092ff492f90617a1.tar.bz2 openshift-5fabd910189a125df2943ef8092ff492f90617a1.tar.xz openshift-5fabd910189a125df2943ef8092ff492f90617a1.zip |
Moving import to local class.
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r-- | roles/lib_openshift/src/class/oc_adm_ca_server_cert.py | 1 | ||||
-rw-r--r-- | roles/lib_openshift/src/lib/import.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py b/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py index c0e7f292a..6ed1f2f35 100644 --- a/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py +++ b/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py @@ -37,6 +37,7 @@ class CAServerCert(OpenShiftCLI): # Added this here as a safegaurd for stomping on the # cert and key files if they exist if self.config.config_options['backup']['value']: + import time ext = time.strftime("%Y-%m-%d@%H:%M:%S", time.localtime(time.time())) date_str = "%s_" + "%s" % ext diff --git a/roles/lib_openshift/src/lib/import.py b/roles/lib_openshift/src/lib/import.py index 9a1fc6ef7..a79297898 100644 --- a/roles/lib_openshift/src/lib/import.py +++ b/roles/lib_openshift/src/lib/import.py @@ -8,8 +8,6 @@ from __future__ import print_function import atexit import copy -# pylint: disable=unused-import -import time import json import os import re |