~corey.bryant/charms/trusty/ceilometer/git-ods

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2014-12-15 09:22:07 UTC
  • mfrom: (57.1.8 ceilometer)
  • Revision ID: james.page@ubuntu.com-20141215092207-fe1sx9p4izbdyw61
[corey.bryant,r=james-page] Sort out charmhelpers issues.

Show diffs side-by-side

added added

removed removed

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