Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(237)

Unified Diff: hooks/charmhelpers/contrib/storage/linux/lvm.py

Issue 108840044: Fill out the HM9000 implementation
Patch Set: Fill out the HM9000 implementation Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « hooks/charmhelpers/contrib/openstack/utils.py ('k') | hooks/charmhelpers/contrib/storage/linux/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: hooks/charmhelpers/contrib/storage/linux/lvm.py
=== modified file 'hooks/charmhelpers/contrib/storage/linux/lvm.py'
--- hooks/charmhelpers/contrib/storage/linux/lvm.py 2014-05-14 16:40:09 +0000
+++ hooks/charmhelpers/contrib/storage/linux/lvm.py 2014-05-30 23:34:00 +0000
@@ -62,7 +62,7 @@
pvd = check_output(['pvdisplay', block_device]).splitlines()
for l in pvd:
if l.strip().startswith('VG Name'):
- vg = ' '.join(l.split()).split(' ').pop()
+ vg = ' '.join(l.strip().split()[2:])
return vg
« no previous file with comments | « hooks/charmhelpers/contrib/openstack/utils.py ('k') | hooks/charmhelpers/contrib/storage/linux/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b