Comment 3 for bug 1472031

Revision history for this message
John Griffith (john-griffith) wrote :

diff --git a/cinder/volume/api.py b/cinder/volume/api.py
index 11abff8..6134fd4 100644
--- a/cinder/volume/api.py
+++ b/cinder/volume/api.py
@@ -185,6 +185,7 @@ class API(base.Base):
                 safe = True
         return safe

+
     def create(self, context, size, name, description, snapshot=None,
                image_id=None, volume_type=None, metadata=None,
                availability_zone=None, source_volume=None,
@@ -192,6 +193,8 @@ class API(base.Base):
                source_replica=None, consistencygroup=None,
                cgsnapshot=None, multiattach=False):

+ check_policy(context, 'create_volume')
+
         # NOTE(jdg): we can have a create without size if we're
         # doing a create from snap or volume. Currently
         # the taskflow api will handle this and pull in the