aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/utils
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-02-06 22:10:00 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2017-02-09 14:09:03 +0100
commit2b191ef958106da17594ee8a4143a392984822b0 (patch)
tree80c3fe103be7c702b807cfd779d6e60074e759d1 /opnfv/utils
parent10eef5153d7d45889f36b330bda20478b7bad8a2 (diff)
[deployment handler] Refactor the old installer_handler
This is a util library to interact with the deployment regardless of the installer. Objects: - Deployment - Node - DeploymentHandler - ApexAdapter - FuelAdapter - Factory The installer adapters implement some of the abstract functions of DeploymentHandler class that can't be generalized. Printout of example.py: http://pastebin.com/raw/SF3A1fee More info: JIRA: RELENG-149 Change-Id: I5c9e94459d5be0bfad6ffac29908a8cfc7ba919c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'opnfv/utils')
-rw-r--r--opnfv/utils/opnfv_logger.py (renamed from opnfv/utils/OPNFVLogger.py)0
-rw-r--r--opnfv/utils/ssh_utils.py (renamed from opnfv/utils/SSHUtils.py)10
2 files changed, 5 insertions, 5 deletions
diff --git a/opnfv/utils/OPNFVLogger.py b/opnfv/utils/opnfv_logger.py
index 6fa4ef2..6fa4ef2 100644
--- a/opnfv/utils/OPNFVLogger.py
+++ b/opnfv/utils/opnfv_logger.py
diff --git a/opnfv/utils/SSHUtils.py b/opnfv/utils/ssh_utils.py
index e0a830c..f900455 100644
--- a/opnfv/utils/SSHUtils.py
+++ b/opnfv/utils/ssh_utils.py
@@ -9,11 +9,12 @@
##############################################################################
-import paramiko
-import opnfv.utils.OPNFVLogger as OPNFVLogger
import os
+import paramiko
+
+from opnfv.utils import opnfv_logger as logger
-logger = OPNFVLogger.Logger('SSHUtils').getLogger()
+logger = logger.Logger("SSH utils").getLogger()
def get_ssh_client(hostname,
@@ -79,7 +80,6 @@ class ProxyHopClient(paramiko.SSHClient):
'''
def __init__(self, *args, **kwargs):
- self.logger = OPNFVLogger.Logger("ProxyHopClient").getLogger()
self.proxy_ssh = None
self.proxy_transport = None
self.proxy_channel = None
@@ -129,4 +129,4 @@ class ProxyHopClient(paramiko.SSHClient):
sock=self.proxy_channel)
os.remove(self.local_ssh_key)
except Exception, e:
- self.logger.error(e)
+ logger.error(e)