[Bugs] [Bug 1294547] New: The --xml flag should always output xml

bugzilla at redhat.com bugzilla at redhat.com
Mon Dec 28 23:32:15 UTC 2015


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

            Bug ID: 1294547
           Summary: The --xml flag should always output xml
           Product: GlusterFS
           Version: 3.7.6
         Component: cli
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: joe at julianfamily.org
                CC: bugs at gluster.org, gluster-bugs at redhat.com



The output of the cli with the --xml flag is inconsistent. Every cli command
should output xml if that flag is set.

At the very minimum, a valid xml message could just be the string output
wrapped in xml, ie.:

# gluster --xml --version
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opRetStr>glusterfs 3.7.6 built on Dec 11 2015 22:26:22
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General
Public License.</opRetStr>
</cliOutput>

This would allow an application to rely on sane input that can always be dom
processed.

-- 
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