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

eaa update command doesn't work #41

Closed
thayakaw opened this issue Apr 26, 2024 · 3 comments
Closed

eaa update command doesn't work #41

thayakaw opened this issue Apr 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@thayakaw
Copy link

When using "cat xxx.json | akamai eaa app app://abcdefg update" command, following error is seen.
Customer insists they can update successfully with same command in the version of 0.5.6, but I can't test it.
Can you please confirm the behavior of it?

[eaa version: 0.6.3]
2024-04-26 17:02:26,242 root E cli-eaa general exception
Traceback (most recent call last):
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/bin/akamai-eaa", line 274, in
a.process_command()
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 120, in process_command
self.update(app, new_config)
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 445, in update
postjj_app_config = self.parse_template(raw_app_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 273, in parse_template
output = t.render(**dict(self._config.variables))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

[eaa version: 0.6.6]
2024-04-26 17:26:01,499 root E cli-eaa general exception
Traceback (most recent call last):
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/bin/akamai-eaa", line 311, in
a.process_command()
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 121, in process_command
self.update(app, new_config)
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 450, in update
postjj_app_config = self.parse_template(raw_app_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/thayakaw/.akamai-cli/src/cli-eaa/libeaa/application.py", line 276, in parse_template
output = t.render(**dict(self._config.variables))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

@thayakaw
Copy link
Author

Hi @bitonio,
This is an inquiry from our lighthouse EAA account. Can you please confirm it?

@bitonio bitonio self-assigned this May 1, 2024
bitonio added a commit that referenced this issue May 1, 2024
Add default values when no variables are passed (regression) Fix #41
@bitonio bitonio added the bug Something isn't working label May 1, 2024
@bitonio
Copy link
Collaborator

bitonio commented May 3, 2024

That's a regression, I fixed it and will push an new version with a fix very soon (Monday EOD).

@thayakaw
Copy link
Author

thayakaw commented May 4, 2024

Thanks. I'll be very helpful. Please let me know once you complete the fix.

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

No branches or pull requests

2 participants