Function juju::storage_get_location [] [src]

pub fn storage_get_location() -> Result<Option<String>, JujuError>

If storage drives were allocated to your unit this will get the path of them. In the storage-attaching hook this will tell you the location where the storage is attached to. IE: /dev/xvdf for block devices or /mnt/{name} for filesystem devices

Failures

Will return a String of the stderr if the call fails