Merge "convert restart_required to 'true' or 'false' string"
This commit is contained in:
commit
f46b23e20d
@ -118,10 +118,12 @@ class ConfigurationParameterView(object):
|
|||||||
self.config = config
|
self.config = config
|
||||||
|
|
||||||
def data(self):
|
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 = {
|
ret = {
|
||||||
"name": self.config.name,
|
"name": self.config.name,
|
||||||
"datastore_version_id": self.config.datastore_version_id,
|
"datastore_version_id": self.config.datastore_version_id,
|
||||||
"restart_required": self.config.restart_required,
|
"restart_required": restart_required,
|
||||||
"type": self.config.data_type,
|
"type": self.config.data_type,
|
||||||
}
|
}
|
||||||
if self.config.max_size:
|
if self.config.max_size:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user