linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] in lvm Shell --reportformat json is ignored
@ 2020-07-10 20:55 Oliver Rath
  0 siblings, 0 replies; only message in thread
From: Oliver Rath @ 2020-07-10 20:55 UTC (permalink / raw)
  To: LVM general discussion and development

Hi list,

Im wondering, that using lvm commands directly and in a lvm-shell work
different:

lvs --reportformat json

works as expected, but the same command in lvm-shell shows only basic
reportformat:

root@p51:/home/oliver# lvs -o lv_name -S 'lv_name=~^thin' --reportformat
json
  {
      "report": [
          {
              "lv": [
                  {"lv_name":"thintest1"},
                  {"lv_name":"thintest2"}
              ]
          }
      ]
  }
root@p51:/home/oliver# lvm
lvm> lvs -o lv_name -S 'lv_name=~^thin' --reportformat json
  LV      
  thintest1
  thintest2
lvm>


Tfh!

Oliver

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-10 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 20:55 [linux-lvm] in lvm Shell --reportformat json is ignored Oliver Rath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).