Revision f824ae42 lib/cli.py
b/lib/cli.py | ||
---|---|---|
3812 | 3812 |
group_ipolicy, allowed_values) |
3813 | 3813 |
|
3814 | 3814 |
if ipolicy_disk_templates is not None: |
3815 |
ipolicy_out[constants.IPOLICY_DTS] = list(ipolicy_disk_templates) |
|
3815 |
if allowed_values and ipolicy_disk_templates in allowed_values: |
|
3816 |
ipolicy_out[constants.IPOLICY_DTS] = ipolicy_disk_templates |
|
3817 |
else: |
|
3818 |
ipolicy_out[constants.IPOLICY_DTS] = list(ipolicy_disk_templates) |
|
3816 | 3819 |
if ipolicy_vcpu_ratio is not None: |
3817 | 3820 |
ipolicy_out[constants.IPOLICY_VCPU_RATIO] = ipolicy_vcpu_ratio |
3818 | 3821 |
if ipolicy_spindle_ratio is not None: |
Also available in: Unified diff