Revision cc0d88e9 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
6288 | 6288 |
if name not in self.op.hvparams: |
6289 | 6289 |
self.op.hvparams[name] = value |
6290 | 6290 |
|
6291 |
if einfo.has_section(constants.INISECT_BEP): |
|
6292 |
# use the parameters, without overriding |
|
6293 |
for name, value in einfo.items(constants.INISECT_BEP): |
|
6294 |
if name not in self.op.beparams: |
|
6295 |
self.op.beparams[name] = value |
|
6296 |
else: |
|
6297 |
# try to read the parameters old style, from the main section |
|
6298 |
for name in constants.BES_PARAMETERS: |
|
6299 |
if (name not in self.op.beparams and |
|
6300 |
einfo.has_option(constants.INISECT_INS, name)): |
|
6301 |
self.op.beparams[name] = einfo.get(constants.INISECT_INS, name) |
|
6302 |
|
|
6291 | 6303 |
def CheckPrereq(self): |
6292 | 6304 |
"""Check prerequisites. |
6293 | 6305 |
|
Also available in: Unified diff