Comment 5 for bug 1223934

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/46897
Committed: http://github.com/openstack/python-novaclient/commit/9e8dd063c6c4215ebda25d0199cec3fb64a81837
Submitter: Jenkins
Branch: master

commit 9e8dd063c6c4215ebda25d0199cec3fb64a81837
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: I1045730e47e9e6ad31fcdfbaefdad77e2f3b2c3e