summaryrefslogtreecommitdiffstats
path: root/SharedModules/Utils/serverutils.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 /SharedModules/Utils/serverutils.py
parent18445ae1a94366c955cc7626fb8ec749dedcf73e (diff)
Removing all automation files from the repo
Diffstat (limited to 'SharedModules/Utils/serverutils.py')
-rw-r--r--SharedModules/Utils/serverutils.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/SharedModules/Utils/serverutils.py b/SharedModules/Utils/serverutils.py
deleted file mode 100644
index 618ee23..0000000
--- a/SharedModules/Utils/serverutils.py
+++ /dev/null
@@ -1,33 +0,0 @@
-"""serverutils module
-"""
-import re
-import hostutils
-from atfglobals import GlobalObj
-
-def execute_on_brick(brickkey, command, commandInput=None):
- """
- """
- env = GlobalObj.getTestenvObj()
-
- raw_brick_obj = env.getRawBrick(brickkey)
- if not raw_brick_obj:
- print "InValid Brick. %s not defined in TestEnvironment" % brickkey
- return 1
- serverkey = re.split("\.", raw_brick_obj.hostname, maxsplit=1)[0]
-
- brick_obj = env.getBrick(brickkey)
- if not brick_obj:
- print "InValid Brick. %s not defined in TestEnvironment" % brickkey
- return 1
- exportdirpath = brick_obj.path
-
- command = "cd " + exportdirpath + ";" + command
- return_status = hostutils.execute_command(serverkey, command, commandInput)
- return return_status
-
-__all__ = ['execute_on_brick']
-
-
-
-
-