From 2b859d218d2b6fb1a307d2b10c393b1a5f2fe9d3 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 31 Aug 2018 05:40:16 +1000 Subject: [PATCH] Backport/2.6/44902 (#44921) * Update lightsail.py (cherry picked from commit dc8307a063e38cb5fd5cb0431f0824b0906ef59e) * correct example code for AWS lightsail * Move changelog to correct location * Update CHANGELOG-v2.6.rst --- changelogs/fragments/aws_lightsail_documentation_fix.yml | 3 +++ lib/ansible/modules/cloud/amazon/lightsail.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/aws_lightsail_documentation_fix.yml diff --git a/changelogs/fragments/aws_lightsail_documentation_fix.yml b/changelogs/fragments/aws_lightsail_documentation_fix.yml new file mode 100644 index 00000000000..a27c8115400 --- /dev/null +++ b/changelogs/fragments/aws_lightsail_documentation_fix.yml @@ -0,0 +1,3 @@ +--- +bugfixes: +- fix example code for AWS lightsail documentation diff --git a/lib/ansible/modules/cloud/amazon/lightsail.py b/lib/ansible/modules/cloud/amazon/lightsail.py index 275e9dc67bc..dfe6443fbe2 100644 --- a/lib/ansible/modules/cloud/amazon/lightsail.py +++ b/lib/ansible/modules/cloud/amazon/lightsail.py @@ -82,7 +82,7 @@ EXAMPLES = ''' msg: "Name is {{ my_instance.instance.name }}" - debug: - msg: "IP is {{ my_instance.instance.publicIpAddress }}" + msg: "IP is {{ my_instance.instance.public_ip_address }}" # Delete an instance if present - lightsail: