manheim / manheim-c7n-tools

Manheim's Cloud Custodian (c7n) wrapper package, policy generator, runner, and supporting tools.
https://manheim-c7n-tools.readthedocs.io/
Apache License 2.0
45 stars 25 forks source link

Install the python package jsonpointer v2.0 #39

Closed vincentclee closed 4 years ago

vincentclee commented 4 years ago

Description

The mailer is requesting use of the package jsonpointer. This adds the package pinned to v2.0

15:00:17 2020-05-08 19:00:16,876 INFO:root:Step 5 of 8 - mailer
15:00:17 2020-05-08 19:00:16,888 INFO:root:Step mailer in REGION 1 of 1 (us-east-1)
15:00:17 2020-05-08 19:00:16,891 INFO:root:Generated mailer config: ...
15:00:26 Traceback (most recent call last):
15:00:26   File "/usr/local/bin/manheim-c7n-runner", line 11, in <module>
15:00:26     load_entry_point('manheim-c7n-tools', 'console_scripts', 'manheim-c7n-runner')()
15:00:26   File "/manheim_c7n_tools/manheim_c7n_tools/runner.py", line 651, in main
15:00:26     args.ACTION, args.regions, step_names=args.steps, skip_steps=args.skip
15:00:26   File "/manheim_c7n_tools/manheim_c7n_tools/runner.py", line 513, in run
15:00:26     self._run_step_in_regions(action, step, regions)
15:00:26   File "/manheim_c7n_tools/manheim_c7n_tools/runner.py", line 566, in _run_step_in_regions
15:00:26     step(region_name, region_conf).run()
15:00:26   File "/manheim_c7n_tools/manheim_c7n_tools/runner.py", line 337, in run
15:00:26     functools.partial(session_factory, conf)
15:00:26   File "/usr/local/lib/python3.7/site-packages/c7n_mailer/deploy.py", line 97, in provision
15:00:26     archive = get_archive(config)
15:00:26   File "/usr/local/lib/python3.7/site-packages/c7n_mailer/deploy.py", line 59, in get_archive
15:00:26     archive = PythonPackageArchive(modules=deps)
15:00:26   File "/usr/local/lib/python3.7/site-packages/c7n/mu.py", line 84, in __init__
15:00:26     self.add_modules(None, modules)
15:00:26   File "/usr/local/lib/python3.7/site-packages/c7n/mu.py", line 128, in add_modules
15:00:26     module = importlib.import_module(module_name)
15:00:26   File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
15:00:26     return _bootstrap._gcd_import(name[level:], package, level)
15:00:26   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
15:00:26   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
15:00:26   File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
15:00:26 ModuleNotFoundError: No module named 'jsonpointer'

Testing Done

Docker build & pip list to verify jsonpointer==2.0 is installed

Contributor License Agreement

Required for external contributors.

By submitting this work for inclusion in manheim-c7n-tools, I agree to the following terms:

codecov-io commented 4 years ago

Codecov Report

Merging #39 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #39   +/-   ##
=======================================
  Coverage   60.60%   60.60%           
=======================================
  Files           8        8           
  Lines        1292     1292           
  Branches      241      241           
=======================================
  Hits          783      783           
  Misses        509      509           

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 7683125...dd0217f. Read the comment docs.