From 136d902ff3e2c18d1bd25377296d4c3098751725 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Wed, 3 Jan 2018 10:55:34 +1000 Subject: [PATCH] Update ec2_asg_lifecycle_hook to pass tests ec2_asg_lifecycle_hook was merged without rerunning tests. Changes needed to pass tests: * version_added * metadata version * copyright header --- .../cloud/amazon/ec2_asg_lifecycle_hook.py | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_asg_lifecycle_hook.py b/lib/ansible/modules/cloud/amazon/ec2_asg_lifecycle_hook.py index 1bedcf40a3..1fe0ee19be 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_asg_lifecycle_hook.py +++ b/lib/ansible/modules/cloud/amazon/ec2_asg_lifecycle_hook.py @@ -1,21 +1,10 @@ #!/usr/bin/python -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2017 Ansible Project +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', - 'metadata_version': '1.0'} + 'metadata_version': '1.1'} DOCUMENTATION = """ --- @@ -25,7 +14,7 @@ description: - When no given Hook found, will create one. - In case Hook found, but provided parameters are differes, will update existing Hook. - In case state=absent and Hook exists, will delete it. -version_added: "2.4" +version_added: "2.5" author: "Igor (Tsigankov) Eyrich (@tsiganenok) " options: state: