Cannot save a RequestSpec object if nothing changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Balazs Gibizer |
Bug Description
If a RequestSpec.save() is called on an object that has no changed field the code blows up with UnboundLocalError:
File "nova/tests/
File "/mnt/ssd/
return fn(self, *args, **kwargs)
File "nova/objects/
updates = self._get_
File "nova/objects/
return db_updates
UnboundLoca
It is because the db_updates local is only initialized if there is something to update but returned regardless
https:/
https:/
Changed in nova: | |
assignee: | nobody → Balazs Gibizer (balazs-gibizer) |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/573768
Review: https:/