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

Occasional name conflict #3

Open
AlanCoding opened this issue Jun 21, 2016 · 0 comments
Open

Occasional name conflict #3

AlanCoding opened this issue Jun 21, 2016 · 0 comments

Comments

@AlanCoding
Copy link
Owner

Sometimes we can get duplicate name errors like this:

creating bulk data
Traceback (most recent call last):
  File "create_data.py", line 435, in <module>
    create_resource_data(res)
  File "create_data.py", line 147, in create_resource_data
    r = res_mod.create(**kwargs)
  File "/Users/alancoding/.virtualenvs/cli2/lib/python2.7/site-packages/ansible_tower_cli-2.3.1-py2.7.egg/tower_cli/models/base.py", line 992, in create
    **kwargs
  File "/Users/alancoding/.virtualenvs/cli2/lib/python2.7/site-packages/ansible_tower_cli-2.3.1-py2.7.egg/tower_cli/models/base.py", line 600, in write
    r = getattr(client, method.lower())(url, data=kwargs)
  File "/Users/alancoding/.virtualenvs/cli2/lib/python2.7/site-packages/requests/sessions.py", line 511, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/Users/alancoding/.virtualenvs/cli2/lib/python2.7/site-packages/ansible_tower_cli-2.3.1-py2.7.egg/tower_cli/api.py", line 169, in request
    kwargs.get('data', None), r.content.decode('utf8'))
tower_cli.utils.exceptions.BadRequest: The Tower server claims it was sent a bad request.

POST http://192.168.100.128:8013/api/v1/inventories/
Params: None
Data: {"organization": 14, "name": "Kshlerin Group", "description": "Visionary demand-driven migration"}

Response: {"name":["Inventory with this Name already exists."]}

Pushed a fix that should stop it, but want to track the status.

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

No branches or pull requests

1 participant