~gnuoy/charms/trusty/cinder/stable-charm-sync

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/storage/linux/lvm.py

  • Committer: james.page at ubuntu
  • Date: 2014-05-21 09:57:23 UTC
  • mfrom: (35.1.2 cinder)
  • Revision ID: james.page@ubuntu.com-20140521095723-qiulw0yz0q0k1jcd
[tribaal,r=james-page,t=james-page]

Resync helpers to pickup fixes for apt lock races and better block device detection and handling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    pvd = check_output(['pvdisplay', block_device]).splitlines()
63
63
    for l in pvd:
64
64
        if l.strip().startswith('VG Name'):
65
 
            vg = ' '.join(l.split()).split(' ').pop()
 
65
            vg = ' '.join(l.strip().split()[2:])
66
66
    return vg
67
67
 
68
68