summaryrefslogtreecommitdiff
path: root/glanceclient/v2/schemas.py
diff options
context:
space:
mode:
Diffstat (limited to 'glanceclient/v2/schemas.py')
-rw-r--r--glanceclient/v2/schemas.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/glanceclient/v2/schemas.py b/glanceclient/v2/schemas.py
index b4ed61c..6e178d2 100644
--- a/glanceclient/v2/schemas.py
+++ b/glanceclient/v2/schemas.py
@@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import copy
+
from glanceclient import exc
@@ -40,6 +42,9 @@ class Schema(object):
raw_properties = raw_schema['properties']
self.properties = translate_schema_properties(raw_properties)
+ def raw(self):
+ return copy.deepcopy(self._raw_schema)
+
class Controller(object):
def __init__(self, http_client):