aws-quickstart / quickstart-documentation-base-common

Common components of the quickstart-documentation-base repo. Stored here to facilicate a centralized source-of-truth for common components of our documentation
Apache License 2.0
14 stars 17 forks source link

action step generate_dynamic_content fails with "TypeError: decode() takes 1 positional argument but 2 were given" #85

Closed jaymccon closed 3 years ago

jaymccon commented 3 years ago
---
  File "<BASE_PATH>/docs/boilerplate/.utils/generate_parameter_tables.py", line 9, in get_cfn
Working on templates/eks-snyk.template.yaml
    _decoded = cfnlint.decode.decode(filename, False)[0]
TypeError: decode() takes 1 positional argument but 2 were given
Error: Process completed with exit code 1.

I'm guessing this is due to an upstream change in cfnlint

jaymccon commented 3 years ago

verified that the error only occurs with cfnlint 0.39.0 . Previous version 0.38.0 works as expected

jaymccon commented 3 years ago

fixed by #87