]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Added a function get_cmd_op
authortamil <tamil@ubuntu.(none)>
Thu, 8 Nov 2012 23:53:05 +0000 (15:53 -0800)
committertamil <tamil@ubuntu.(none)>
Thu, 8 Nov 2012 23:53:28 +0000 (15:53 -0800)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
qa/qa_scripts/S3Lib.pm

index 3d40f89591088ee19e18865bce32bb5d1f42b51e..ae2a9611f26710da8d0bf1aa5266bf02d45e2dd8 100644 (file)
@@ -14,6 +14,14 @@ use Exporter;
 #==variables ===
 my $rgw_user = "qa_user";
 
+# function to execute the command and return output
+sub get_cmd_op
+{
+    my $cmd = shift;
+    my $excmd = `$cmd`;
+    return $excmd;
+}
+
 # Function to check if radosgw is already running
 sub get_status {
         my $service = "radosgw";