summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1b9ae8e)
JIRA: RELENG-149
JIRA: RELENG-161
Now that we have a modules directory in place, let's
move all the shared python code to this location.
We need to create a setup.py to install these
modules in the system so that we don't have to
modify the pythonpath.
Change-Id: I7e608ce6e1e6b3d111405bc789cdb2ff7fcb49c3
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
16 files changed:
project in OPNFV. This tools must be python based and shall be imported
as follows:
project in OPNFV. This tools must be python based and shall be imported
as follows:
- from releng.modules.utils import SSHUtils
- from releng.modules.utils import RelengLogger
+ from opnfv.utils import SSHUtils
+ from opnfv.utils import RelengLogger
...
For further information about how to use this modules directory, contact:
...
For further information about how to use this modules directory, contact:
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-import SSHUtils as ssh_utils
-import RelengLogger as rl
+import opnfv.modules.utils.SSHUtils as ssh_utils
+import opnfv.modules.utils.OPNFVLogger as logger
installer_ip,
self.installer_user,
password=self.installer_password)
installer_ip,
self.installer_user,
password=self.installer_password)
- self.logger = rl.Logger("Handler").getLogger()
+ self.logger = logger.Logger("FuelHandler").getLogger()
def runcmd_fuel_installer(self, cmd):
_, stdout, stderr = (self
def runcmd_fuel_installer(self, cmd):
_, stdout, stderr = (self
-import RelengLogger as rl
+import opnfv.modules.utils.OPNFVLogger as OPNFVLogger
-logger = rl.Logger('SSHUtils').getLogger()
+logger = OPNFVLogger.Logger('SSHUtils').getLogger()
def get_ssh_client(hostname, username, password=None, jumphost=None):
def get_ssh_client(hostname, username, password=None, jumphost=None):
'''
Connect to a remote server using a jumphost hop
'''
'''
Connect to a remote server using a jumphost hop
'''
def __init__(self, *args, **kwargs):
self.logger = rl.Logger("JumpHostHopClient").getLogger()
self.jumphost_ssh = None
def __init__(self, *args, **kwargs):
self.logger = rl.Logger("JumpHostHopClient").getLogger()
self.jumphost_ssh = None