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

3scale proxy-config promote is not idempotent #173

Closed
nmasse-itix opened this issue Jun 18, 2019 · 0 comments
Closed

3scale proxy-config promote is not idempotent #173

nmasse-itix opened this issue Jun 18, 2019 · 0 comments

Comments

@nmasse-itix
Copy link
Contributor

current behavior

If the proxy definition has not been updated since the last promotion, the 3scale proxy promote fails with:

$ 3scale proxy-config promote nmasse-redhat api 
Error: ProxyConfig not promoted. Errors: {"version"=>["has already been taken"]}

expected behavior

$ bundle exec 3scale proxy-config promote nmasse-redhat api 
Warning: nothing to promote
$ echo $?
0

In the Ansible playbooks, I added a check to make sure there is something to promote:
https://github.com/nmasse-itix/threescale-cicd/blob/61a568068cac1063c31f24d7087c0d74a03c98f9/tasks/steps/promote.yml#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants