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:
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(-)
Created attachment 1020341 [details] dropdown Fixed in 5.4.0.0.22.20150420163946_26004d1
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