summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-22 12:53:21 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-22 12:53:21 -0500
commit5fabd910189a125df2943ef8092ff492f90617a1 (patch)
tree81b2c11efb61313fa6dda5602c00db8ed1d38da9 /roles/lib_openshift/src
parent9c49ba4bb0b69604e98fc3dda65f8ccd40f19552 (diff)
downloadopenshift-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.py1
-rw-r--r--roles/lib_openshift/src/lib/import.py2
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