Bug 1214012 - Default value for dropdown list in orchestration template is not honored
Summary: Default value for dropdown list in orchestration template is not honored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.4.0
Assignee: Shveta
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-21 18:31 UTC by Bill Wei
Modified: 2015-06-16 12:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:59:23 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
dropdown (51.38 KB, image/png)
2015-04-29 21:47 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Bill Wei 2015-04-21 18:31:59 UTC
Description of problem:
The dialog created from an orchestration template does not preselect the default value for a dropdown list type control.

To reproduce and verify, try to add the following to the parameters section of a HOT template:

parameters:
  flavor2:
    default: m1.medium
    label: Flavor Instance2
    type: string
    description: Type of instance (flavor) to be used
    constraints:
    - description: Value must be one of m1.small, m1.medium or m1.large
      allowed_values:
      - m1.small
      - m1.medium
      - m1.large

The dropdown list for Flavor Instance2 should have 3 items, namely m1.small, m1.medium, and m1.large, with m1.medium is preselected by default.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 CFME Bot 2015-04-21 22:02:02 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/934a7f328abb05fb16a5c19c2dce20cfa95d062f

commit 934a7f328abb05fb16a5c19c2dce20cfa95d062f
Author:     Bill Wei <bilwei>
AuthorDate: Tue Apr 21 14:35:48 2015 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Tue Apr 21 14:35:48 2015 -0400

    set default value to dropdown list based on the parameter default value
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1214012

 .../orchestration_template_dialog_service.rb        | 21 +++++++++++----------
 .../orchestration_template_dialog_service_spec.rb   |  2 +-
 2 files changed, 12 insertions(+), 11 deletions(-)

Comment 4 Shveta 2015-04-29 21:47:00 UTC
Created attachment 1020341 [details]
dropdown

Fixed in 5.4.0.0.22.20150420163946_26004d1

Comment 6 errata-xmlrpc 2015-06-16 12:59:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html


Note You need to log in before you can comment on or make changes to this bug.