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

Regression with inline variable passed to template #26

Closed
bitonio opened this issue Aug 17, 2023 · 0 comments
Closed

Regression with inline variable passed to template #26

bitonio opened this issue Aug 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bitonio
Copy link
Collaborator

bitonio commented Aug 17, 2023

$ cat webapp.json.j2 | akamai eaa app - create
2023-08-17 20:37:08,433 root E cli-eaa general exception
Traceback (most recent call last):
  File "/root/.akamai-cli/src/cli-eaa/bin/akamai-eaa", line 274, in <module>
    a.process_command()
  File "/root/.akamai-cli/src/cli-eaa/libeaa/application.py", line 114, in process_command
    self.create(new_config)
  File "/root/.akamai-cli/src/cli-eaa/libeaa/application.py", line 275, in create
    app_config = json.loads(self.parse_template(raw_app_config))
  File "/root/.akamai-cli/src/cli-eaa/libeaa/application.py", line 259, in parse_template
    output = t.render(**dict(self._config.variables))
TypeError: 'NoneType' object is not iterable

Work around:

$ cat webapp.json.j2 | akamai eaa app - create --var DUMMY VALUE
@bitonio bitonio self-assigned this Aug 17, 2023
@bitonio bitonio added the bug Something isn't working label Aug 17, 2023
@bitonio bitonio linked a pull request Aug 17, 2023 that will close this issue
@bitonio bitonio closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant