You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Sometimes we can get duplicate name errors like this:
Pushed a fix that should stop it, but want to track the status.
The text was updated successfully, but these errors were encountered: