Skip to content

Instantly share code, notes, and snippets.

@patrick-east
Created March 8, 2016 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrick-east/ca50040cbfaaefa4afe3 to your computer and use it in GitHub Desktop.
Save patrick-east/ca50040cbfaaefa4afe3 to your computer and use it in GitHub Desktop.
diff --git a/cinder/objects/volume.py b/cinder/objects/volume.py
index d50175e..3556ceb 100644
--- a/cinder/objects/volume.py
+++ b/cinder/objects/volume.py
@@ -455,6 +455,6 @@ class VolumeList(base.ObjectListBase, base.CinderObject):
limit, sort_keys=sort_keys,
sort_dirs=sort_dirs,
filters=filters, offset=offset)
- expected_attrs = ['admin_metadata', 'metadata']
+ expected_attrs = ['admin_metadata', 'metadata', 'volume_type']
return base.obj_make_list(context, cls(context), objects.Volume,
volumes, expected_attrs=expected_attrs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment