Skip to content

Commit

Permalink
Fix docs type
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Sep 22, 2023
1 parent 61d5dab commit 5745997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 2 additions & 17 deletions plugins/modules/ec2_import_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
hypervisor:
description:
- The target hypervisor platform.
default: str
tyoe: str
choices: ["xen"]
kms_key_id:
description:
Expand Down Expand Up @@ -223,17 +223,7 @@
hypervisor:
description:
- The target hypervisor platform.
default: str
wait:
description:
- Wait for operation to complete before returning.
default: false
type: bool
wait_timeout:
description:
- How many seconds to wait for an operation to complete before timing out.
default: 320
type: int
type: str
kms_key_id:
description:
- The identifier for the symmetric KMS key that was used to create the encrypted AMI.
Expand Down Expand Up @@ -353,11 +343,8 @@ def present(client, module):
params["UsageOperation"] = module.params["usage_operation"]
if module.params.get("boot_mode"):
params["BootMode"] = module.params.get("boot_mode")

params["TagSpecifications"] = boto3_tag_specifications(tags, ["import-image-task"])

wait = module.params.get("wait")

filters = {
"Filters": [
{"Name": "tag:Name", "Values": [module.params["task_name"]]},
Expand Down Expand Up @@ -395,8 +382,6 @@ def main():
disk_containers=dict(type="list", elements="dict"),
encrypted=dict(type="bool"),
state=dict(default="present", choices=["present", "absent"]),
wait=dict(type="bool", default=False),
wait_timeout=dict(type="int", default=320, required=False),
hypervisor=dict(type="str", choices=["xen"]),
kms_key_id=dict(type="str"),
license_type=dict(type="str", no_log=False),
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ec2_import_image_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
hypervisor:
description:
- The target hypervisor platform.
default: str
type: str
kms_key_id:
description:
- The identifier for the symmetric KMS key that was used to create the encrypted AMI.
Expand Down

0 comments on commit 5745997

Please sign in to comment.