Skip to content

Commit

Permalink
Remove placement options now that ansible-collections#1825 covers it …
Browse files Browse the repository at this point in the history
…already.
  • Loading branch information
Ubuntu committed Oct 24, 2023
1 parent 57f3d84 commit 5338ac0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions plugins/modules/ec2_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,6 @@
returned: always
type: str
sample: default
host_id:
description: The ID of the Dedicated Host on which the instance resides.
returned: always
type: str
sample: ""
additional_info:
description: Reserved.
returned: always
Expand Down Expand Up @@ -1303,16 +1298,6 @@ def build_top_level_options(params):
spec["Placement"]["GroupName"] = str(params.get("placement_group"))
else:
spec.setdefault("Placement", {"GroupName": str(params.get("placement_group"))})
if params.get("host_id"):
if "Placement" in spec:
spec["Placement"]["HostId"] = str(params.get("host_id"))
else:
spec.setdefault("Placement", {"HostId": str(params.get("host_id"))})
if params.get("availability_zone"):
if "Placement" in spec:
spec["Placement"]["AvailabilityZone"] = str(params.get("availability_zone"))
else:
spec.setdefault("Placement", {"AvailabilityZone": str(params.get("availability_zone"))})
if params.get("ebs_optimized") is not None:
spec["EbsOptimized"] = params.get("ebs_optimized")
if params.get("instance_initiated_shutdown_behavior"):
Expand Down Expand Up @@ -2157,7 +2142,6 @@ def main():
),
),
additional_info=dict(type='str'),
host_id=dict(type="str"),
)
# running/present are synonyms
# as are terminated/absent
Expand Down

0 comments on commit 5338ac0

Please sign in to comment.