summaryrefslogtreecommitdiffstats
path: root/libs/utils/managerutils.py
diff options
context:
space:
mode:
authorVijaykumar <vkoppad@redhat.com>2012-02-13 14:54:42 +0530
committerroot <vkoppad@redhat.com>2012-03-14 21:03:51 +0530
commitda93b886f28f3818cb11a5a35fae37abe2ebb988 (patch)
treee627ca2e4c6cc786f8f52fe42e1a1a08ad6d07bb /libs/utils/managerutils.py
parent4a0b5f9d0e0266c8c67b5faa76599fc78a247437 (diff)
Geo-replication library and gluster installation.HEADmaster
* Geo-replication library function in glusterutils * A new section in configuration file for geo-rep * In gluster installation , changing libexecdir to /usr/local/libexec in configuration. * Removed some unwanted code. * handling to have a geo-rep session locally also. Change-Id: Ifcf00b73ed933077640113ce0528b39bdad55999 Signed-off-by: Vijaykumar <vkoppad@redhat.com> Signed-off-by: root <root@vostro.(none)>
Diffstat (limited to 'libs/utils/managerutils.py')
-rw-r--r--libs/utils/managerutils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/utils/managerutils.py b/libs/utils/managerutils.py
index 6f72e99..057460e 100644
--- a/libs/utils/managerutils.py
+++ b/libs/utils/managerutils.py
@@ -1,4 +1,4 @@
-"""managerutils module.
+"""managerutils module.
Supported Wrappers:-
---------------
@@ -9,6 +9,7 @@ Supported Wrappers:-
import re
import ssh
from atfglobals import GlobalObj
+import pdb
def ssh_connect(hostkey):
"""
@@ -19,7 +20,7 @@ def ssh_connect(hostkey):
if cm is None:
logger.error("Init ConnectionsManager")
return 1
-
+
host_connection = cm.getConnection(hostkey)
if not host_connection:
host_obj = env.getHost(hostkey)
@@ -53,10 +54,9 @@ def ssh_connect_allhosts():
for hostkey in hosts_keys:
return_status = ssh_connect(hostkey)
if return_status:
- return return_status
-
+ return return_status
+
return 0
__all__ = ['ssh_connect',
'ssh_connect_allhosts']
-