Comment 21 for bug 1421439

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/python-glanceclient (openstack-ci/fuel-6.1/2014.2)

Reviewed: https://review.fuel-infra.org/11394
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-6.1/2014.2

Commit: 8bd93a94aabfa5719ce50dfefeb8340ff5aeee42
Author: Alexander Tivelkov <email address hidden>
Date: Wed Sep 16 22:12:34 2015

Expose 'is_base' schema property attribute

Changeset I49255255 has added an 'is_base' attribute for Image Schema
properties, thus allowing to differentiate between base and custom image
properties, but the client hasn't make any use of it.

This patch adds appropriate attribute to SchemaProperty class and a
helper method which allows to validate if the given property is base or
not.

The added helper method (is_base_property) should not be confused with
the existing is_core_property: the latter just checks if the property is
known to the schema, regardless of its being base or not.

Change-Id: I7c397196dad9ae5494ed2f8f3aacef3fc1ce70d8
Partial-Bug: #1421439