_add_details() method copies keypair attributes retrieved
from Nova to an instance of Keypair class. Trying to set
attribute 'id' fails with AttributeError, because Keypair
class has a read-only property 'id'.
We can safely omit setting of attribute 'id', because it's
just an implementation detail (the id of a table row in a
database), and keypairs for a given tenant are uniquely
identified using attribute 'name'.
Reviewed: https:/ /review. openstack. org/46897 github. com/openstack/ python- novaclient/ commit/ 9e8dd063c6c4215 ebda25d0199cec3 fb64a81837
Committed: http://
Submitter: Jenkins
Branch: master
commit 9e8dd063c6c4215 ebda25d0199cec3 fb64a81837
Author: Roman Podolyaka <email address hidden>
Date: Tue Sep 17 10:21:03 2013 +0300
Fix AttributeError in Keypair. _add_details( )
_add_details() method copies keypair attributes retrieved
from Nova to an instance of Keypair class. Trying to set
attribute 'id' fails with AttributeError, because Keypair
class has a read-only property 'id'.
We can safely omit setting of attribute 'id', because it's
just an implementation detail (the id of a table row in a
database), and keypairs for a given tenant are uniquely
identified using attribute 'name'.
Fixes bug 1223934
Change-Id: I1045730e47e9e6 ad31fcdfbaefdad 77e2f3b2c3e