summaryrefslogtreecommitdiffstats
path: root/Libraries/GlusterCommands/ATFGlusterPeer.py
diff options
context:
space:
mode:
authorShwetha-H-Panduranga <shwetha@gluster.com>2011-12-06 14:25:20 +0530
committerShwetha-H-Panduranga <shwetha@gluster.com>2011-12-06 14:25:20 +0530
commit129e39fe6878f28ca203c690fab382b7289b334c (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Libraries/GlusterCommands/ATFGlusterPeer.py
parent18445ae1a94366c955cc7626fb8ec749dedcf73e (diff)
Removing all automation files from the repo
Diffstat (limited to 'Libraries/GlusterCommands/ATFGlusterPeer.py')
-rwxr-xr-xLibraries/GlusterCommands/ATFGlusterPeer.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/Libraries/GlusterCommands/ATFGlusterPeer.py b/Libraries/GlusterCommands/ATFGlusterPeer.py
deleted file mode 100755
index 9e40f50..0000000
--- a/Libraries/GlusterCommands/ATFGlusterPeer.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-import ATFUtils
-import ATFTestEnv
-
-def probe():
- """
- Description:
- probe peer specified by <HOSTNAME>
-
- Parameters:
- None
-
- Returns:
- Success: 0
- Failure: 1
- """
-
- command = "gluster peer probe "
- servers = ATFUtils.TestEnvObj.get_servershostlist()
-
- length = len(servers)
- if (length == 1):
- ATFUtils.Logger.warning("Self Probing of Server Not Required")
- return 0
- else:
- fromhost = servers.pop(0)
- for host in servers:
- command = command + host + " "
-
- status, stdin, stdout, stderr = ATFUtils.execute_command(command,
- host=fromhost,
- user='root')
-
- if (status == 1):
- return 1
- else:
- return ATFUtils.parse_output(stdout, stderr)
-