Add default value to 0 for disk in nova_flavor module (#64749)
* Add default value to 0 for disk in nova_flavor module * Apply suggestions from code review Add type int for disk size Co-Authored-By: John R Barker <john@johnrbarker.com>
This commit is contained in:
parent
551b17b8a2
commit
a6f45713fc
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,8 @@ options:
|
|||
disk:
|
||||
description:
|
||||
- Size of local disk, in GB.
|
||||
default: 0
|
||||
type: int
|
||||
ephemeral:
|
||||
description:
|
||||
- Ephemeral space size, in GB.
|
||||
|
@ -181,8 +183,8 @@ def main():
|
|||
# required when state is 'present'
|
||||
ram=dict(required=False, type='int'),
|
||||
vcpus=dict(required=False, type='int'),
|
||||
disk=dict(required=False, type='int'),
|
||||
|
||||
disk=dict(required=False, default=0, type='int'),
|
||||
ephemeral=dict(required=False, default=0, type='int'),
|
||||
swap=dict(required=False, default=0, type='int'),
|
||||
rxtx_factor=dict(required=False, default=1.0, type='float'),
|
||||
|
|
Loading…
Reference in a new issue