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 engine-ca instead
of cert-file.

Change-Id: I43befe3fa63e1fb5c624fd528399e867c2b5e882
Bug-Url: https://bugzilla.redhat.com/1046309
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/__main__.py
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/02/22702/1

diff --git a/src/__main__.py b/src/__main__.py
index 80d354d..0b20647 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -357,6 +357,14 @@
                     cp.get('LogCollector', 'rhevm')
                 )
             cp.remove_option('LogCollector', 'rhevm')
+        if cp.has_option('LogCollector', 'engine-ca'):
+            if not cp.has_option('LogCollector', 'cert-file'):
+                cp.set(
+                    'LogCollector',
+                    'cert-file',
+                    cp.get('LogCollector', 'engine-ca')
+                )
+            cp.remove_option('LogCollector', 'engine-ca')
 
         # we want the items from the LogCollector section only
         try:


-- 
To view, visit http://gerrit.ovirt.org/22702
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I43befe3fa63e1fb5c624fd528399e867c2b5e882
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

Reply via email to