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: Ie4b06eea10a31b675fac0cae98465988dd66894d
Bug-Url: https://bugzilla.redhat.com/1046303
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-image-uploader 
refs/changes/99/22699/1

diff --git a/src/__main__.py b/src/__main__.py
index a2d82be..93f4b79 100644
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -256,6 +256,14 @@
                     cp.get('ImageUploader', 'rhevm')
                 )
             cp.remove_option('ImageUploader', 'rhevm')
+        if cp.has_option('ImageUploader', 'engine-ca'):
+            if not cp.has_option('ImageUploader', 'cert-file'):
+                cp.set(
+                    'ImageUploader',
+                    'cert-file',
+                    cp.get('ImageUploader', 'engine-ca')
+                )
+            cp.remove_option('ImageUploader', 'engine-ca')
 
         # we want the items from the ImageUploader section only
         try:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4b06eea10a31b675fac0cae98465988dd66894d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-image-uploader
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