~gnuoy/charms/trusty/ceph/1517940

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/hookenv.py

  • Committer: James Page
  • Date: 2015-12-09 10:26:33 UTC
  • mfrom: (123.1.2 ceph)
  • Revision ID: james.page@ubuntu.com-20151209102633-vy36b2e7utb706ag
Add initial support for Juju storage for osd and journal devices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
637
637
 
638
638
 
639
639
@cached
640
 
def storage_get(attribute="", storage_id=""):
 
640
def storage_get(attribute=None, storage_id=None):
641
641
    """Get storage attributes"""
642
642
    _args = ['storage-get', '--format=json']
643
643
    if storage_id:
651
651
 
652
652
 
653
653
@cached
654
 
def storage_list(storage_name=""):
 
654
def storage_list(storage_name=None):
655
655
    """List the storage IDs for the unit"""
656
656
    _args = ['storage-list', '--format=json']
657
657
    if storage_name: