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

Fix regression when using role arn in package command #794

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Apr 12, 2018

We need a noop method for precreated roles in the template generator.
This was missed in testing because the models were directly
passed to the template generator instead of using the
dependency builder. In this case we were only passing the
LambdaFunction resource to the template generator, but
in reality we'd also pass the models.IAMRole resource
as well because it's a dependency of the lambda function.

Fixes #793.

We need a noop method for precreated roles in the template generator.
This was missed in testing because the models were directly
passed to the template generator instead of using the
dependency builder.  In this case we were only passing the
LambdaFunction resource to the template generator, but
in reality we'd also pass the `models.IAMRole` resource
as well because it's a dependency of the lambda function.

Fixes aws#793.
@codecov-io
Copy link

codecov-io commented Apr 12, 2018

Codecov Report

Merging #794 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
+ Coverage   94.92%   94.93%   +<.01%     
==========================================
  Files          21       21              
  Lines        3667     3669       +2     
  Branches      471      471              
==========================================
+ Hits         3481     3483       +2     
  Misses        124      124              
  Partials       62       62
Impacted Files Coverage Δ
chalice/package.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19be95a...2a8a187. Read the comment docs.

Copy link
Contributor

@stealthycoin stealthycoin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, was just coming to take a look at this.

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@jamesls jamesls merged commit 2a8a187 into aws:master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants