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: Ibdfae742e8dfea58eb19b61987e347003b69b57b Bug-Url: https://bugzilla.redhat.com/1032689 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-iso-uploader refs/changes/98/22698/1 diff --git a/src/__main__.py b/src/__main__.py index e571a41..96c3e50 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -288,6 +288,14 @@ cp.get('ISOUploader', 'rhevm') ) cp.remove_option('ISOUploader', 'rhevm') + if cp.has_option('ISOUploader', 'engine-ca'): + if not cp.has_option('ISOUploader', 'cert-file'): + cp.set( + 'ISOUploader', + 'cert-file', + cp.get('ISOUploader', 'engine-ca') + ) + cp.remove_option('ISOUploader', 'engine-ca') # we want the items from the ISOUploader section only try: -- To view, visit http://gerrit.ovirt.org/22698 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibdfae742e8dfea58eb19b61987e347003b69b57b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-iso-uploader Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
