schema_args: Do not generate option for read-only properties
The schema_args decorator generates command line options based on the
properties defined in a schema. This commit makes sure read-only
properties are skipped during this process, since trying to modify their
value would result in a Glance error.
Reviewed: https:/ /review. opendev. org/c/openstack /python- glanceclient/ +/858549 /opendev. org/openstack/ python- glanceclient/ commit/ 74fa43665719ddc 830999fa15bb052 a87d69dd14
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 74fa43665719ddc 830999fa15bb052 a87d69dd14
Author: Cyril Roelandt <email address hidden>
Date: Tue Sep 20 18:05:33 2022 +0200
schema_args: Do not generate option for read-only properties
The schema_args decorator generates command line options based on the
properties defined in a schema. This commit makes sure read-only
properties are skipped during this process, since trying to modify their
value would result in a Glance error.
Closes-Bug: #1561828 daeedcb9e6d4355 9f497ce9555
Change-Id: I7ccc628a23c9eb