From f399fb763b419e9a57bac1045f7af7340f39fcc1 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Wed, 26 Apr 2023 18:08:34 +0200 Subject: [PATCH] Reabse (#1468) Pick up app_callback -> set_password rather than app_callback -> set_passwd SUMMARY Closes: #1449 Pick up app_callback -> set_password rather than app_callback -> set_passwd ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell --- changelogs/fragments/20230424-ec2_instance-app_callback.yml | 2 ++ plugins/modules/ec2_instance.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/20230424-ec2_instance-app_callback.yml diff --git a/changelogs/fragments/20230424-ec2_instance-app_callback.yml b/changelogs/fragments/20230424-ec2_instance-app_callback.yml new file mode 100644 index 00000000000..e8066909b9f --- /dev/null +++ b/changelogs/fragments/20230424-ec2_instance-app_callback.yml @@ -0,0 +1,2 @@ +bugfixes: +- ec2_instance - Pick up ``app_callback -> set_password`` rather than ``app_callback -> set_passwd`` (https://github.com/ansible-collections/amazon.aws/issues/1449). diff --git a/plugins/modules/ec2_instance.py b/plugins/modules/ec2_instance.py index 1ccaa9c2a5e..9bbdca2ce99 100644 --- a/plugins/modules/ec2_instance.py +++ b/plugins/modules/ec2_instance.py @@ -1240,7 +1240,7 @@ def build_userdata(params): job_template_id=params.get("aap_callback").get("job_template_id"), host_config_key=params.get("aap_callback").get("host_config_key"), windows=params.get("aap_callback").get("windows"), - passwd=params.get("aap_callback").get("set_passwd"), + passwd=params.get("aap_callback").get("set_password"), ) return {"UserData": userdata} return {}