Fix typo and test
Change-Id: I93e135a9366c1f7c93397dfa0c342428fb64eb1c
diff --git a/linux/storage/lvm.sls b/linux/storage/lvm.sls
index 76191d1..9c99956 100644
--- a/linux/storage/lvm.sls
+++ b/linux/storage/lvm.sls
@@ -38,7 +38,7 @@
- require_in:
- mount: {{ volume.mount.path }}
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %}
- - mkfs_{{ volume.mount.device}}:
+ - cmd: mkfs_{{ volume.mount.device}}
{%- endif %}
{%- endif %}
diff --git a/tests/pillar/storage.sls b/tests/pillar/storage.sls
index af63dbe..17f3b9c 100644
--- a/tests/pillar/storage.sls
+++ b/tests/pillar/storage.sls
@@ -36,7 +36,20 @@
lv01:
size: 5M
mount:
- path: /mnt
+ device: /dev/vg0/lv01
+ path: /mnt/lv01
+ lv02:
+ size: 5M
+ mount:
+ device: /dev/vg0/lv02
+ path: /mnt/lv02
+ file_system: ext4
+ lv03:
+ size: 5M
+ mount:
+ device: /dev/vg0/lv03
+ path: /mnt/lv03
+ file_system: xfs
disk1:
enabled: true
device: /dev/loop_dev4