~ubuntu-branches/ubuntu/raring/cinder/raring-updates

« back to all changes in this revision

Viewing changes to cinder/api/views/types.py

  • Committer: Package Import Robot
  • Author(s): Chris J Arges
  • Date: 2013-01-15 10:10:28 UTC
  • mfrom: (7.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130115101028-i1jf2lyewii1xf2e
Tags: 2013.1~g2-0ubuntu2
debian/patches/series: Enable skip_failed_tests to fix FTBFS. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    def show(self, request, volume_type, brief=False):
24
24
        """Trim away extraneous volume type attributes."""
25
25
        trimmed = dict(id=volume_type.get('id'),
26
 
                          name=volume_type.get('name'),
27
 
                          extra_specs=volume_type.get('extra_specs'))
 
26
                       name=volume_type.get('name'),
 
27
                       extra_specs=volume_type.get('extra_specs'))
28
28
        return trimmed if brief else dict(volume_type=trimmed)
29
29
 
30
30
    def index(self, request, volume_types):