diff options
author | Cyril Roelandt <cyril@redhat.com> | 2022-09-21 19:38:24 +0200 |
---|---|---|
committer | Cyril Roelandt <cyril@redhat.com> | 2022-11-14 17:31:39 +0100 |
commit | 88e3b0ad984797ec1f856429698949e4781dff3a (patch) | |
tree | c3b5c409f4759e06735fc1ec641e8f1225c6fee4 /releasenotes | |
parent | 9e8fcdb92ed41594fe458b0976e9e29387849262 (diff) | |
download | python-glanceclient-88e3b0ad984797ec1f856429698949e4781dff3a.tar.gz |
Boolean options: use strict checking
Boolean options (such as "--protected" for glance md-namespace-update)
should accept a limited amount of valid values, rather than assuming an
"invalid" value means "False".
The following values (no matter the case) will now be interpreted as
True: ‘t’,’true’, ‘on’, ‘y’, ‘yes’, or ‘1’.
The following values (no matter the case) will now be interpreted as
False: ‘f’, ‘false’, ‘off’, ‘n’, ‘no’, or ‘0’.
Change-Id: I0e7942045d883ac398bab4a7a85f2b4ac9b1ed8c
Closes-Bug: #1607317
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/boolean-properties-strict-checking-bdd624b5da81e723.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/releasenotes/notes/boolean-properties-strict-checking-bdd624b5da81e723.yaml b/releasenotes/notes/boolean-properties-strict-checking-bdd624b5da81e723.yaml new file mode 100644 index 0000000..bd0836d --- /dev/null +++ b/releasenotes/notes/boolean-properties-strict-checking-bdd624b5da81e723.yaml @@ -0,0 +1,12 @@ +--- +prelude: > +fixes: + - | + * Bug 1607317_: metadata def namespace update CLI is not working as expected for parameter "protected" + + .. _1607317: https://code.launchpad.net/bugs/1607317 +other: + - | + Boolean arguments now expect one of the following values: '0', '1', 'f', + 'false', 'n', 'no', 'off', 'on', 't', 'true', 'y', 'yes' + (case-insensitive). This will not change anything for most users. |