python-karborclient: get() method on a checkpoint object fails

Bug #1643315 reported by Yuval Brik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Medium
chenying

Bug Description

Each resource (plan, provider, checkpoint, etc.) in python-karborclient inherits from Resource, which has a `.get()` method to update the resource attributes.

The `.get()` method on a Checkpoint object fails:

    File "karborclient/common/base.py", line 325, in get
        new = self.manager.get(self.id)
    TypeError: get() takes at least 3 arguments (2 given)

This is caused because Resource `.get()` sends the get request to the manager with the resource (in this case, a Checkpoint) id, and without the provider id required for the checkpoint get.

Issue easily reproduced when trying to call `.get()` on a Checkpoint object created with python-karborclient

Yuval Brik (jhamhader)
Changed in karbor:
status: New → Triaged
importance: Undecided → Medium
milestone: none → ocata
chenying (ying-chen)
Changed in karbor:
assignee: nobody → chenying (ying-chen)
Revision history for this message
Yuval Brik (jhamhader) wrote :
Changed in karbor:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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