~james-page/charms/trusty/cinder/lp1516085-stable

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2015-08-10 16:34:04 UTC
  • Revision ID: james.page@ubuntu.com-20150810163404-ioxhus5bzxloax4j
Tags: 15.07
[gnuoy] 15.07 Charm release

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))