Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the user to update a volume's metadata
The fix mainly involves updating the VolumeController's update method to allow the 'metadata' key to be a valid key in a request body. The _translate_volume_summary_view method is updated to check for a 'metadata' key in the vol parameter after checking first for 'volume_metadata'. This is to avoid making a third call to the database after updating the volume model. This solution introduces the least amount of new code. Change-Id: I41256d03f9c4c7a0866ff0f2d35fce8e4fd26b11 Fixes: bug #1046382
- Loading branch information
jking-6
committed
Oct 24, 2012
1 parent
02755f3
commit 9fe4477
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters