stop using internal Resource._info variable

Bug #1619048 reported by Ruby Loo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ironicclient
In Progress
Low
M V P Nitesh

Bug Description

Code implementing the openstackclient commands (in ironicclient/osc/v1) uses common.apiclient.base.Resource._info. We shouldn't use this because it is a private attribute.

One suggestion is to use Resource.to_dict(). However, that does a (deep) copy of the dictionary, which seems like a waste. What I'd like is access to a 'read-only' dictionary :-)

(For an example of this, see Vlad and Lucas's comments in https://review.openstack.org/#/c/350050/.)

Changed in python-ironicclient:
importance: Undecided → Low
Changed in python-ironicclient:
status: Confirmed → Triaged
Changed in python-ironicclient:
assignee: nobody → M V P Nitesh (m-nitesh)
status: Triaged → In Progress
Revision history for this message
Vladyslav Drok (vdrok) wrote :
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.