Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda modules refactored to use new ansible.module_utils.aws.core. #26059

Closed
wants to merge 32 commits into from

Conversation

mikedlr
Copy link
Contributor

@mikedlr mikedlr commented Jun 24, 2017

SUMMARY

This PR modifies the lambda and lambda_fact to use the new ansible.module_utils.aws module and shows the benefits of doing so. The changes currently include all changes included in #25780 so that the new lambda changes work. Since the new module utils have now been merged this is a stand alone fix which can be merged.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

lambda module
lambda_fact module

ANSIBLE VERSION
ansible 2.4.0 (lambda_using_new_aws_utils e16bda5837) last updated 2017/06/24 18:13:49 (GMT +100)
  config file = None
  configured module search path = [u'/home/mikedlr/dev/ansible/ansible-dev/library']
  ansible python module location = /home/mikedlr/dev/ansible/ansible-dev/lib/ansible
  executable location = /home/mikedlr/dev/ansible/ansible-dev/bin/ansible
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
ADDITIONAL INFORMATION

this PR currently serves

once #25780 is merged then this should be rebased off devel and then merged. (rebase done)

The only changes to command behaviour should be more consistent and complete exception handling in the modules. Further testing encouraged.

@ansibot
Copy link
Contributor

ansibot commented Jun 24, 2017

cc @pjodouin
click here for bot help

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 aws c:module_utils/ cloud community_review In order to be merged, this PR must follow the community review workflow. feature_pull_request module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. labels Jun 24, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 24, 2017

The test ansible-test sanity --test pep8 failed with the following errors:

test/sanity/pep8/legacy-files.txt:55:1: A201 Remove "lib/ansible/modules/cloud/amazon/lambda.py" since it passes the current rule set
test/sanity/pep8/legacy-files.txt:56:1: A201 Remove "lib/ansible/modules/cloud/amazon/lambda_facts.py" since it passes the current rule set

The test ansible-test sanity --test pylint failed with the following error:

lib/ansible/modules/cloud/amazon/lambda.py:306:16: redundant-keyword-arg Argument 'msg' passed by position and keyword in method call

click here for bot help

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Jun 24, 2017
@alikins alikins removed the needs_triage Needs a first human triage before being processed. label Jun 26, 2017
@mattclay mattclay changed the title [waiting on #25780] Lambda using new aws utils WIP [waiting on #25780] Lambda using new aws utils Jun 28, 2017
@mattclay mattclay added the WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. label Jun 28, 2017
@mattclay
Copy link
Member

I added WIP to the labels and title since this is waiting on another PR.

@mattclay
Copy link
Member

@mikedlr Since this includes all changes from #25780, it should be passing CI, correct?

@mikedlr mikedlr force-pushed the lambda_using_new_aws_utils branch from e16bda5 to 342a31f Compare June 28, 2017 22:53
@ansibot ansibot added the support:community This issue/PR relates to code supported by the Ansible community. label Jun 28, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 28, 2017

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/module_utils/aws.py:81:1: W293 blank line contains whitespace
test/units/module_utils/aws/test_aws_module.py:50:17: E225 missing whitespace around operator
test/units/module_utils/aws/test_aws_module.py:51:25: E225 missing whitespace around operator
test/units/module_utils/aws/test_aws_module.py:55:16: E713 test for membership should be 'not in'

click here for bot help

@mikedlr mikedlr force-pushed the lambda_using_new_aws_utils branch from 394fe61 to 7e44535 Compare June 29, 2017 23:27
@ansibot
Copy link
Contributor

ansibot commented Jun 30, 2017

The test ansible-test sanity --test pep8 failed with the following error:

lib/ansible/module_utils/aws.py:53:29: W291 trailing whitespace

click here for bot help

@mikedlr mikedlr force-pushed the lambda_using_new_aws_utils branch from 7e4dfd4 to a23213e Compare July 8, 2017 21:29
@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed module This issue/PR relates to a module. labels Jul 8, 2017
@ansibot
Copy link
Contributor

ansibot commented Jul 10, 2017

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/cloud/amazon/lambda.py:322:47: E231 missing whitespace after ','
lib/ansible/modules/cloud/amazon/lambda.py:322:61: E231 missing whitespace after ','

click here for bot help

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 24, 2017
@ansibot
Copy link
Contributor

ansibot commented Aug 24, 2017

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/cloud/amazon/lambda.py:364:15: E271 multiple spaces after keyword
lib/ansible/modules/cloud/amazon/lambda.py:485:15: E271 multiple spaces after keyword

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Aug 24, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 24, 2017
@ryansb ryansb closed this Aug 28, 2017
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 5, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 aws c:module_utils/ cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants