From fcf8223dfeda09d525893e402161ef441f5027a9 Mon Sep 17 00:00:00 2001 From: Misho Krastev Date: Mon, 5 Jan 2015 01:52:20 -0800 Subject: [PATCH] fix lvol module to properly query the size of logical volumes --- lib/ansible/modules/extras/system/lvol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/lvol.py b/lib/ansible/modules/extras/system/lvol.py index 8276d753db1..d1e144157f4 100644 --- a/lib/ansible/modules/extras/system/lvol.py +++ b/lib/ansible/modules/extras/system/lvol.py @@ -154,7 +154,7 @@ def main(): lvs_cmd = module.get_bin_path("lvs", required=True) rc, current_lvs, err = module.run_command( - "%s --noheadings -o lv_name,size --units %s --separator ';' %s" % (lvs_cmd, unit, vg)) + "lvs --noheadings --nosuffix -o lv_name,size --units %s --separator ';' %s" % (unit, vg)) if rc != 0: if state == 'absent':