]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Check only our VG name when testing if VG exists
authorEric Harney <eharney@redhat.com>
Thu, 14 Nov 2013 18:29:42 +0000 (13:29 -0500)
committerEric Harney <eharney@redhat.com>
Thu, 14 Nov 2013 18:33:20 +0000 (13:33 -0500)
commitccc4cca6e1d220a140dfa647aeff36bcae4f79dc
treee93be3e8e591befc436af27b1db496288117a8f8
parentf4dff4d337466f0b63a60f978acaf29d861a6b4b
Check only our VG name when testing if VG exists

Rather than calling "vgs" we should just call
"vgs <cinder-vg-name>" which returns only information about the VG
we are querying.

Also hardens test command string matching to error on unexpected
calls.

Change-Id: I25580e34b6589e161a51274f22dbb9ed922e43ed
cinder/brick/local_dev/lvm.py
cinder/tests/brick/test_brick_lvm.py