summaryrefslogtreecommitdiffstats
path: root/openstack/common/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-20 23:05:28 +0000
committerGerrit Code Review <review@openstack.org>2012-11-20 23:05:28 +0000
commit5232a6bdc89241ccfb9e7b7782372911c3e86442 (patch)
treee51670fa2c9c695e2d17d2180fa1437f8d10e230 /openstack/common/utils.py
parent5ec8cfde3b41b4e4df2e5a1ecad46521c1cde94a (diff)
parentb6d24bbad9493b4318367c23cbab8c4f688a924a (diff)
downloadoslo-5232a6bdc89241ccfb9e7b7782372911c3e86442.tar.gz
oslo-5232a6bdc89241ccfb9e7b7782372911c3e86442.tar.xz
oslo-5232a6bdc89241ccfb9e7b7782372911c3e86442.zip
Merge "updating sphinx documentation"
Diffstat (limited to 'openstack/common/utils.py')
-rw-r--r--openstack/common/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack/common/utils.py b/openstack/common/utils.py
index dce62c1..e5e04ba 100644
--- a/openstack/common/utils.py
+++ b/openstack/common/utils.py
@@ -38,7 +38,9 @@ def int_from_bool_as_string(subject):
Interpret a string as a boolean and return either 1 or 0.
Any string value in:
+
('True', 'true', 'On', 'on', '1')
+
is interpreted as a boolean True.
Useful for JSON-decoded stuff and config file parsing
@@ -51,7 +53,9 @@ def bool_from_string(subject):
Interpret a string as a boolean.
Any string value in:
+
('True', 'true', 'On', 'on', 'Yes', 'yes', '1')
+
is interpreted as a boolean True.
Useful for JSON-decoded stuff and config file parsing