[Bugs] [Bug 1211132] New: 'volume get' invoked on a non-existing key fails with zero as a return value

bugzilla at redhat.com bugzilla at redhat.com
Mon Apr 13 06:10:43 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1211132

            Bug ID: 1211132
           Summary: 'volume get' invoked on a non-existing key fails with
                    zero as a return value
           Product: GlusterFS
           Version: mainline
         Component: cli
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: sasundar at redhat.com
        QA Contact: sasundar at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
-----------------------
'volume get' invoked on a non-existing key returns zero as a return value

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
glusterfs-3.7 nightly build

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Try to get the value of the non-existing key on the volume

(i.e) gluster volume get <vol-name> mykey

Actual results:
---------------
return value ($?) is 0

Expected results:
-----------------
return value should be non-zero, indicating the failure as the key is
non-existent

Additional info:
-----------------
[root@ ~]# gluster volume get repvol mykey
volume get option: failed: Did you mean acl or allow?

[root@ ~]# echo $?
0

This affects automation - where the return value of the command will be checked
for the successful execution of a command

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list