Add missing hidden option to cluster template

Without this patch, starting from Train, a user is not able to create or
update a cluster template on the Horizon UI.

Story: 2006953
Task: 37638

Change-Id: I214e8bad1dbabfd2e82d6d195152289a89d40e8d
This commit is contained in:
Andrei Nistor 2019-11-26 16:35:06 +02:00 committed by Bharat Kunwar
parent a87c42234d
commit 99d4e5a688
3 changed files with 15 additions and 1 deletions

View File

@ -71,6 +71,8 @@
? response.data.server_type : "";
config.model.public = response.data.public
? response.data.public : false;
config.model.hidden = response.data.hidden
? response.data.hidden : false;
config.model.registry_enabled = response.data.registry_enabled
? response.data.registry_enabled : false;
config.model.tls_disabled = response.data.tls_disabled

View File

@ -110,6 +110,10 @@
title: gettext('Public'),
type: 'boolean'
},
'hidden': {
title: gettext('Hidden'),
type: 'boolean'
},
'registry_enabled': {
title: gettext('Enable Registry'),
type: 'boolean'
@ -269,13 +273,15 @@
{
key: 'public'
},
{
key: 'hidden'
},
{
key: 'registry_enabled'
},
{
key: 'tls_disabled'
}
]
}
],
@ -467,6 +473,7 @@
coe: "",
server_type: "",
public: "",
hidden: "",
registry_enabled: "",
tls_disabled: "",
image_id: "",

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix an issue where a user was unable to create or update a cluster template
on Horizon due to missing hidden option expected by the API.