diff options
author | Craig Vyvial <cp16net@gmail.com> | 2014-10-10 10:07:29 -0500 |
---|---|---|
committer | Nikhil Manchanda <SlickNik@gmail.com> | 2014-10-10 20:01:57 -0700 |
commit | e94c68c7861ea82324f8078ccfbc3037ef286d99 (patch) | |
tree | 05ffb0c8ecfb503dd629c1e08251bf992a9b8544 | |
parent | 8af6a9adaad83bfbc3c26107dc82c444fd9aa1b4 (diff) | |
download | trove-e94c68c7861ea82324f8078ccfbc3037ef286d99.tar.gz |
convert restart_required to 'true' or 'false' string2014.2.rc2
The output of the configuration-parameters-list/show was
inadvertently changed when the parameters were moved into
the database in Juno.
Change-Id: Ic7d215482f5a9ab8ba2059cae7b91a99b35f2795
Closes-Bug: #1379665
-rw-r--r-- | trove/configuration/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/trove/configuration/views.py b/trove/configuration/views.py index 27991f99..db8fa7fc 100644 --- a/trove/configuration/views.py +++ b/trove/configuration/views.py @@ -118,10 +118,12 @@ class ConfigurationParameterView(object): self.config = config def data(self): + # v1 api expects this to be a 'true' or 'false' string instead of 1/0 + restart_required = 'true' if self.config.restart_required else 'false' ret = { "name": self.config.name, "datastore_version_id": self.config.datastore_version_id, - "restart_required": self.config.restart_required, + "restart_required": restart_required, "type": self.config.data_type, } if self.config.max_size: |