Remove some broken and unnecessary required args logic
This commit is contained in:
parent
63e5d5dcc4
commit
19d99e0da6
1 changed files with 0 additions and 4 deletions
|
@ -108,10 +108,6 @@ except ImportError:
|
||||||
|
|
||||||
def cloud_block_storage(module, state, name, description, meta, size,
|
def cloud_block_storage(module, state, name, description, meta, size,
|
||||||
snapshot_id, volume_type, wait, wait_timeout):
|
snapshot_id, volume_type, wait, wait_timeout):
|
||||||
for arg in (state, name, size, volume_type):
|
|
||||||
if not arg:
|
|
||||||
module.fail_json(msg='%s is required for rax_cbs' % arg)
|
|
||||||
|
|
||||||
if size < 100:
|
if size < 100:
|
||||||
module.fail_json(msg='"size" must be greater than or equal to 100')
|
module.fail_json(msg='"size" must be greater than or equal to 100')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue