~corey.bryant/charms/trusty/openstack-dashboard/pin-oslos

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2015-07-29 10:48:39 UTC
  • Revision ID: liam.young@canonical.com-20150729104839-g189q8rzabci8nmi
[gnuoy,trivial] Pre-release charmhelper sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    out = check_output(['mount']).decode('UTF-8')
68
68
    if is_partition:
69
69
        return bool(re.search(device + r"\b", out))
70
 
    return bool(re.search(device + r"[0-9]+\b", out))
 
70
    return bool(re.search(device + r"[0-9]*\b", out))