commit | 6b6058fd3a398df704c6eb5dd58912cd4ee87860 | [log] [tgz] |
---|---|---|
author | Simon Pasquier <spasquier@mirantis.com> | Mon Nov 28 11:07:48 2016 +0100 |
committer | Simon Pasquier <spasquier@mirantis.com> | Mon Nov 28 11:07:48 2016 +0100 |
tree | 62604620d14dbe6fa4f7074323cc8ed7d2f33f9e | |
parent | a4eb313e4fcd04889cabef6ed79cce2b4521c184 [diff] |
Support no volume for linux.storage.lvm state
diff --git a/linux/storage/lvm.sls b/linux/storage/lvm.sls index 59941b1..13f0e84 100644 --- a/linux/storage/lvm.sls +++ b/linux/storage/lvm.sls
@@ -25,7 +25,7 @@ - name: {{ vg.get('name', vgname) }} - devices: {{ vg.devices|join(',') }} -{%- for lvname, volume in vg.volume.iteritems() %} +{%- for lvname, volume in vg.get('volume', {}).iteritems() %} lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}: lvm.lv_present: