openstacksdk image tag APIs are broken

Bug #1557297 reported by Ankit Agrawal
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack SDK
In Progress
Undecided
Ankit Agrawal

Bug Description

Image tag APIs fails for TypeError with following stack trace

1. create_tag
Traceback (most recent call last):
  File "test_image.py", line 91, in <module>
    tag = conn.image.create_tag(image='2b68eb0c-b1e4-46b8-b299-7f857781407f', tag='test')
  File "/home/ubuntu/workbook/python-openstacksdk/openstack/image/v2/_proxy.py", line 192, in create_tag
    return self._create(_tag.Tag, **attrs)
  File "/home/ubuntu/workbook/python-openstacksdk/openstack/proxy.py", line 179, in _create
    return res.create(self.session)
TypeError: create() takes exactly 3 arguments (2 given)

2. delete_tag
Traceback (most recent call last):
  File "test_image.py", line 96, in <module>
    tag = conn.image.delete_tag('test')
  File "/home/ubuntu/workbook/python-openstacksdk/openstack/image/v2/_proxy.py", line 207, in delete_tag
    return self._delete(_tag.Tag, tag, ignore_missing=ignore_missing)
  File "/home/ubuntu/workbook/python-openstacksdk/openstack/proxy.py", line 36, in check
    return method(self, expected, actual, *args, **kwargs)
  File "/home/ubuntu/workbook/python-openstacksdk/openstack/proxy.py", line 125, in _delete
    rv = res.delete(self.session)
TypeError: delete() takes exactly 3 arguments (2 given)

Changed in python-openstacksdk:
assignee: nobody → Ankit Agrawal (ankitagrawal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstacksdk (master)

Fix proposed to branch: master
Review: https://review.openstack.org/292705

Changed in python-openstacksdk:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstacksdk (master)

Change abandoned by Monty Taylor (<email address hidden>) on branch: master
Review: https://review.openstack.org/292705

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.