Sandro Bonazzola has uploaded a new change for review. Change subject: config: added backward compatibilty ......................................................................
config: added backward compatibilty Added backward compatibility supporting upgrade from 3.1 version which used the keyword rhevm instead of engine Change-Id: I781493d9a224e412edbf1816579718de39ce0f54 Signed-off-by: Sandro Bonazzola <[email protected]> --- M src/__main__.py 1 file changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector refs/changes/98/15198/1 diff --git a/src/__main__.py b/src/__main__.py index 5f4e866..bb5327a 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -316,6 +316,15 @@ cp = ConfigParser.ConfigParser() cp.read(configs) + #backward compatibility with existing setup + if cp.has_option('LogCollector', 'rhevm'): + cp.set( + 'LogCollector', + 'engine', + cp.get('LogCollector', 'rhevm') + ) + cp.remove_option('LogCollector', 'rhevm') + # we want the items from the LogCollector section only try: opts = [ -- To view, visit http://gerrit.ovirt.org/15198 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I781493d9a224e412edbf1816579718de39ce0f54 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-log-collector Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
