yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46867
[Bug 1414830] Re: heat templates hidden parameters are not loading defaults
Reviewed: https://review.openstack.org/254342
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ddb94e0d526c1f750ae88ff4f6a53a14a9235da6
Submitter: Jenkins
Branch: master
commit ddb94e0d526c1f750ae88ff4f6a53a14a9235da6
Author: lin-hua-cheng <os.lcheng@xxxxxxxxx>
Date: Mon Dec 7 10:19:53 2015 -0800
Fixes heat templates hidden parameters are not loading problem
This patch allows the initial value to be filled on the form.
Change-Id: I3070c63ddca7b969eaca6a519e0912d973fe46ba
Closes-bug: #1414830
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1414830
Title:
heat templates hidden parameters are not loading defaults
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
When you use a Heat template that has parameters with default values
but they're hidden , the defaults are not loaded. This is super
annoying because then you have to unhide them in order to not have to
set them. This is easy to repro with the Wordpress 2 Instance template
in the heat-templates repo.
In this template all the db_ stuff has default values of "admin" but
when the field is marked hidden, Horizon is not setting the default
parameter.
Example section that's broken in Horizon:
db_username:
type: string
description: The WordPress database admin account username
default: admin
hidden: true
constraints:
- length: { min: 1, max: 16 }
description: db_username must be between 1 and 16 characters
- allowed_pattern: '[a-zA-Z][a-zA-Z0-9]*'
description: >
db_username must begin with a letter and contain only alphanumeric
characters
Link to template:
https://github.com/openstack/heat-templates/blob/master/hot/F20/WordPress_2_Instances.yaml
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1414830/+subscriptions
References