[lvm-devel] master - lvmdbusd: Correct command line args for JSON

tasleson tasleson at fedoraproject.org
Tue Jun 28 19:24:25 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0aadd6b0fb4eaa9e59d6f750f2efe2fdfdacdd8f
Commit:        0aadd6b0fb4eaa9e59d6f750f2efe2fdfdacdd8f
Parent:        4b337b20d47953e130edc8a456e9431eba58a778
Author:        Tony Asleson <tasleson at redhat.com>
AuthorDate:    Mon Jun 27 17:04:44 2016 -0500
Committer:     Tony Asleson <tasleson at redhat.com>
CommitterDate: Tue Jun 28 12:09:28 2016 -0500

lvmdbusd: Correct command line args for JSON

Use the updated syntax.
---
 daemons/lvmdbusd/cmdhandler.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py
index 0440dbd..2ca23e7 100644
--- a/daemons/lvmdbusd/cmdhandler.py
+++ b/daemons/lvmdbusd/cmdhandler.py
@@ -467,11 +467,11 @@ def lvm_full_report_json():
 
 	cmd = _dc('fullreport', [
 		'-a',		# Need hidden too
-		'-o', '/pv/' + ','.join(pv_columns),
-		'-o', '/vg/' + ','.join(vg_columns),
-		'-o', '/lv/' + ','.join(lv_columns),
-		'-o', '/seg/' + ','.join(lv_seg_columns),
-		'-o', '/pvseg/' + ','.join(pv_seg_columns),
+		'--configreport', 'pv', '-o', ','.join(pv_columns),
+		'--configreport', 'vg', '-o', ','.join(vg_columns),
+		'--configreport', 'lv', '-o', ','.join(lv_columns),
+		'--configreport', 'seg', '-o', ','.join(lv_seg_columns),
+		'--configreport', 'pvseg', '-o', ','.join(pv_seg_columns),
 		'--reportformat', 'json'
 	])
 




More information about the lvm-devel mailing list