summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/utils/clientutils.py4
-rw-r--r--libs/utils/serverutils.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/utils/clientutils.py b/libs/utils/clientutils.py
index 33f036e..9272e55 100644
--- a/libs/utils/clientutils.py
+++ b/libs/utils/clientutils.py
@@ -175,8 +175,8 @@ def execute_on_mount(mountkey, command, commandInput=None):
clientkey = mount_obj.client
mountdir = mount_obj.dir
command = "cd " + mountdir + " ;" + command
- return_status = hostutils.execute_command(clientkey, command, commandInput)
- return return_status
+ output = hostutils.execute_command(clientkey, command, commandInput)
+ return output['exitstatus']
__all__ = ['execute_on_mount',
'umount',
diff --git a/libs/utils/serverutils.py b/libs/utils/serverutils.py
index 78e48b8..226f35e 100644
--- a/libs/utils/serverutils.py
+++ b/libs/utils/serverutils.py
@@ -25,8 +25,8 @@ def execute_on_brick(brickkey, command, commandInput=None):
exportdirpath = brick_obj.path
command = "cd " + exportdirpath + ";" + command
- return_status = hostutils.execute_command(serverkey, command, commandInput)
- return return_status
+ output = hostutils.execute_command(serverkey, command, commandInput)
+ return output['exitstatus']
__all__ = ['execute_on_brick']