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

Implement support for YAML and JSON codecs for the file lookup #537

Merged
merged 3 commits into from
Jul 7, 2018

Conversation

danielkza
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #537 into master will increase coverage by 0.1%.
The diff coverage is 96.8%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #537     +/-   ##
=========================================
+ Coverage   87.54%   87.65%   +0.1%     
=========================================
  Files          94       94             
  Lines        6072     6158     +86     
=========================================
+ Hits         5316     5398     +82     
- Misses        756      760      +4
Impacted Files Coverage Δ
stacker/lookups/handlers/file.py 89.58% <88.88%> (-2.09%) ⬇️
stacker/tests/lookups/handlers/test_file.py 99.04% <98.97%> (-0.96%) ⬇️

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 af5916a...e4f08c3. Read the comment docs.

Copy link
Member

@phobologic phobologic left a comment

Choose a reason for hiding this comment

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

Needs docs - otherwise this looks good to me.

return Base64(result.data) if b64 else result


def _parameterize_obj(obj):
Copy link
Member

Choose a reason for hiding this comment

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

Can we get some docstrings in here?

@danielkza danielkza force-pushed the lookup-file-yaml-json branch from e4f08c3 to 403a6a4 Compare July 3, 2018 23:20
@danielkza
Copy link
Contributor Author

Rebased and added docstrings to most of the functions. @phobologic

Copy link
Member

@phobologic phobologic left a comment

Choose a reason for hiding this comment

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

Thanks for picking this back up! Awesome.

@phobologic
Copy link
Member

Ahh, issues with a long line from lint. Tried to fix it, but couldn't push to your branch @danielkza - simple fix, can you clean that up and then I'll merge? Thanks!

@danielkza danielkza force-pushed the lookup-file-yaml-json branch from 403a6a4 to 52b38ef Compare July 5, 2018 21:28
@danielkza
Copy link
Contributor Author

Rebased and hopefully fixed the warning :)

@phobologic phobologic merged commit bef0acd into cloudtools:master Jul 7, 2018
@phobologic
Copy link
Member

Looks great, thanks @danielkza

phrohdoh pushed a commit to phrohdoh/stacker that referenced this pull request Dec 18, 2018
…dtools#537)

* Implement support for YAML and JSON codecs for the file lookup

* Document YAML and JSON codecs for the file lookup

* lookups: file: fix linter warning in test
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.

3 participants