summaryrefslogtreecommitdiff
path: root/glanceclient/common/utils.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-01-12 22:39:41 +0000
committerGerrit Code Review <review@openstack.org>2023-01-12 22:39:41 +0000
commit9b9c67771505ead95feb2525773f988a59436cf6 (patch)
tree2b7b91b9ad4018e412ecd84aa96d914c5ce3b978 /glanceclient/common/utils.py
parent6c95122777c8449056115292b492ec3e1e0d6e50 (diff)
parent88e3b0ad984797ec1f856429698949e4781dff3a (diff)
downloadpython-glanceclient-9b9c67771505ead95feb2525773f988a59436cf6.tar.gz
Merge "Boolean options: use strict checking"
Diffstat (limited to 'glanceclient/common/utils.py')
-rw-r--r--glanceclient/common/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py
index e131bd9..c7afc79 100644
--- a/glanceclient/common/utils.py
+++ b/glanceclient/common/utils.py
@@ -103,7 +103,7 @@ def schema_args(schema_getter, omit=None):
typemap = {
'string': encodeutils.safe_decode,
'integer': int,
- 'boolean': strutils.bool_from_string,
+ 'boolean': lambda x: strutils.bool_from_string(x, strict=True),
'array': list
}