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: cfn-lint issue #48

Merged
merged 1 commit into from
Apr 13, 2024
Merged

fix: cfn-lint issue #48

merged 1 commit into from
Apr 13, 2024

Conversation

kukushking
Copy link
Contributor

@kukushking kukushking commented Apr 13, 2024

Describe your changes

  • Fixes the cfn-lint issue
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.19/x64/bin/cfn-lint", line 5, in <module>
    from cfnlint.__main__ import main
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/__init__.py", line 10, in <module>
    import cfnlint.rules
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/rules/__init__.py", line 18, in <module>
    from cfnlint.template import Template
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/template/__init__.py", line 1, in <module>
    from cfnlint.template.template import Template
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/template/template.py", line 18, in <module>
    from cfnlint.template.transforms import Transform
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/template/transforms/__init__.py", line 6, in <module>
    from cfnlint.template.transforms.transform import Transform
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/template/transforms/transform.py", line 15, in <module>
    from cfnlint.template.transforms._sam import sam
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/cfnlint/template/transforms/_sam.py", line 16, in <module>
    from samtranslator.translator.translator import Translator
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/samtranslator/translator/translator.py", line [34](https://github.com/awslabs/aiops-modules/actions/runs/8672050999/job/23781910433?pr=32#step:8:35), in <module>
    from samtranslator.plugins.policies.policy_templates_plugin import PolicyTemplatesForResourcePlugin
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/samtranslator/plugins/policies/policy_templates_plugin.py", line 7, in <module>
    from samtranslator.policy_template_processor.processor import PolicyTemplatesProcessor
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/samtranslator/policy_template_processor/processor.py", line 5, in <module>
    import jsonschema
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/jsonschema/_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/jsonschema/exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/referencing/__init__.py", line 5, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/referencing/_core.py", line 86, in <module>
    class Specification(Generic[D]):
  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/referencing/_core.py", line 112, in Specification
    ] = field(alias="anchors_in")
TypeError: field() got an unexpected keyword argument 'alias'

Issue ticket number and link

Checklist before requesting a review

  • [-] I updated CHANGELOG.MD with a description of my changes
  • If the change was to a module, I ran the code validation script (scripts/validate.sh)
  • If the change was to a module, I have added thorough tests
  • If the change was to a module, I have added/updated the module's README.md
  • If a module was added, I added a reference to the module to the repository's README.md
  • I verified that my code deploys successfully using seedfarmer apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Anton Kukushkin <[email protected]>
@kukushking kukushking merged commit 130904b into awslabs:main Apr 13, 2024
10 checks passed
@kukushking kukushking deleted the fix/cfn-lint branch April 13, 2024 16:27
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.

1 participant