mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
4de6076d78
commit
6e84baddb6
1 changed files with 5 additions and 2 deletions
|
@ -164,9 +164,11 @@ def main():
|
||||||
|
|
||||||
if module.params['state'] == 'present':
|
if module.params['state'] == 'present':
|
||||||
if not image:
|
if not image:
|
||||||
|
kwargs={}
|
||||||
|
if module.params['id'] is not None:
|
||||||
|
kwargs['id'] = module.params['id']
|
||||||
image = cloud.create_image(
|
image = cloud.create_image(
|
||||||
name=module.params['name'],
|
name=module.params['name'],
|
||||||
id=module.params['id'],
|
|
||||||
filename=module.params['filename'],
|
filename=module.params['filename'],
|
||||||
disk_format=module.params['disk_format'],
|
disk_format=module.params['disk_format'],
|
||||||
container_format=module.params['container_format'],
|
container_format=module.params['container_format'],
|
||||||
|
@ -174,7 +176,8 @@ def main():
|
||||||
timeout=module.params['timeout'],
|
timeout=module.params['timeout'],
|
||||||
is_public=module.params['is_public'],
|
is_public=module.params['is_public'],
|
||||||
min_disk=module.params['min_disk'],
|
min_disk=module.params['min_disk'],
|
||||||
min_ram=module.params['min_ram']
|
min_ram=module.params['min_ram'],
|
||||||
|
**kwargs
|
||||||
)
|
)
|
||||||
changed = True
|
changed = True
|
||||||
if not module.params['wait']:
|
if not module.params['wait']:
|
||||||
|
|
Loading…
Reference in a new issue