diff options
| author | Guillermo Gonzalez <guillermo.gonzalez@canonical.com> | 2015-05-29 17:37:04 -0300 |
|---|---|---|
| committer | Guillermo Gonzalez <guillermo.gonzalez@canonical.com> | 2015-05-29 17:37:04 -0300 |
| commit | 78bd2e024768b79baa3ffb3497e0103b987aa0b4 (patch) | |
| tree | 27c2477ec2e4420188eb8d90ecc5ac900942f261 /hooks | |
| parent | 43f214381873213887b04c639a178efd25f08e5f (diff) | |
fix local storage support
Diffstat (limited to 'hooks')
| -rwxr-xr-x | hooks/hooks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/hooks.py b/hooks/hooks.py index e388d46..787bca4 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -1547,7 +1547,8 @@ def config_changed_volume_apply(): assert(data_directory_path) volid = volume_get_volume_id() if volid: - if volume_is_permanent(volid): + volid_from_subordinate = volume_get_id_for_storage_subordinate() + if volume_is_permanent(volid) and not volid_from_subordinate: if not volume_init_and_mount(volid): juju_log( "volume_init_and_mount failed, not applying changes") |
