jorgebastida / jorgebastida/gordon

Gordon apply error in 0.3.0 (works in 0.2.1)

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
132
PR merge metrics
No merged PRs in 30d

Description

```
$ gordon apply --stage=dev
Applying project...
Enter MFA code: [...enter code...]
Traceback (most recent call last):
File "/usr/local/bin/gordon", line 9, in
load_entry_point('gordon==0.3.0', 'console_scripts', 'gordon')()
File "/usr/local/lib/python2.7/dist-packages/gordon/bin.py", line 106, in main
getattr(obj, options.func)()
File "/usr/local/lib/python2.7/dist-packages/gordon/core.py", line 426, in apply
context.update(self.collect_parameters())
File "/usr/local/lib/python2.7/dist-packages/gordon/core.py", line 475, in collect_parameters
context=context
File "/usr/local/lib/python2.7/dist-packages/gordon/utils.py", line 190, in convert_cloudformation_types
cf_data[k] = ', '.join(v)
TypeError: sequence item 0: expected string, dict found
```

The same project/config work fine in 0.2.1.
NOT using bucket event sources at all.
I'm not into python so just tell me what you need to debug the issue there... :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with gordon/core.py at collect_parameters and follow the call into gordon/utils.py at convert_cloudformation_types. Reproduce `gordon apply --stage=dev` with the reported project and compare behavior between versions 0.2.1 and 0.3.0; done means the apply completes without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.