Bug 847258 - exit with error when a parameter in answer file is defined more than once
Summary: exit with error when a parameter in answer file is defined more than once
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Moran Goldboim
QA Contact: Pavel Stehlik
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-10 10:04 UTC by David Jaša
Modified: 2015-09-22 13:10 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-20 08:25:28 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Jaša 2012-08-10 10:04:58 UTC
Description of problem:
exit with error when a parameter in answer file is defined more than once

Version-Release number of selected component (if applicable):
rhevm-setup-3.1.0-11.el6ev.noarch / si13.2

How reproducible:
always

Steps to Reproduce:
1. Copy some configuration option to other part of the file
2. run engine-setup --answer-file=${FILE}
3.
  
Actual results:
engine-setup takes last occurence of duplicate value for further processing

Expected results:
engine-setup exits with error that the option is entered more than once

Additional info:
silly error on my account but took me quite a while to figure out...

Comment 1 Itamar Heim 2013-02-10 07:05:32 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.

Comment 2 Alon Bar-Lev 2013-09-20 08:25:28 UTC
The answer files in 3.3 creates an otopi configuration file which is environment file, which is standard python configfile.

It is valid to specify multiple entries of same variable within one file and among multiple files that are loaded by order.

This enables override of values with more specific configuration, for example:

# engine-setup --config-append=base.conf --config-append=my-server.conf

Also in previous setup, taking the last value was appropriate.


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