zalando-stups / senza

Deploy immutable application stacks and create and execute AWS CloudFormation templates in a sane way

Home Page:https://pypi.python.org/pypi/stups-senza

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Senza stack creation broken with latest Pier One CLI upgrade

hjacobs opened this issue · comments

Cannot create a stack after senza version upgrade:

File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pierone/api.py", line 102, in image_exists
url = 'https://{}'.format(image.registry)
AttributeError: 'str' object has no attribute 'registry'

This will probably be fixed with #226, but maybe we need to provide a quick fix earlier (?)

@rafaelcaricio ok, next time we should make sure (including myself during review) that we don't simply change functions in the "api" module as they are "exposed" to other tools.

@hjacobs I think we should use the commands as subprocess instead of calling directly the source code to avoid this kind of things. It blocks one code of evolving because of misterious "clients" using the code as public interface. Besides that this dependency is only in our heads which means we have to remember that they exist.

@rafaelcaricio that's why I called it "api" module, so it was the whole idea to have an API library.

How would be a better way to update the signature of the functions existing in the api module?