From da93b886f28f3818cb11a5a35fae37abe2ebb988 Mon Sep 17 00:00:00 2001 From: Vijaykumar Date: Mon, 13 Feb 2012 14:54:42 +0530 Subject: Geo-replication library and gluster installation. * 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 Signed-off-by: root --- libs/utils/managerutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/utils/managerutils.py') 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'] - -- cgit