~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

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

  • Committer: James Page
  • Date: 2014-06-24 11:05:17 UTC
  • Revision ID: james.page@ubuntu.com-20140624110517-7chb3mwca2mtnmlp
Resync helpers, add standard targets to Makefile

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