summaryrefslogtreecommitdiffstats
path: root/libs/utils/managerutils.py
diff options
context:
space:
mode:
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']
-