saltstack/salt — pull request #17682 by fessoga5 (2014-11-11 08:35:24+00:00)
Title: Fix error in lvcreate (pv=None)

Hello.I have state:
/dev/sda5_zabbix01:
lvm.pv_present:
- name: /dev/sda5

head-vg_zabbix01:
lvm.vg_present:
- name: head-vg
- devices:
- /dev/sda5

zabbix01_root:
lvm.lv_present:
- vgname: head-vg
- size: 32G
- require:
- lvm: head-vg

This is not work in 2014.7, because
[INFO ] Executing command ['lvcreate', '-n', 'zabbix01_root', 'head-vg', '-L', '32G', ''] in directory '/root'
[ERROR ] Command ['lvcreate', '-n', 'zabbix01_root', 'head-vg', '-L', '32G', ''] failed with return code: 5
[ERROR ] output: Physical Volume "" not found in Volume Group "head-vg"

Me ubuntu execute "lvcreate -n zabbix01_root head-vg -L 32G '' and return "Physical Volume "" not found in Volume Group "head-vg"", because pv=''. I think this is error. You can fix this?