X-Git-Url: http://gitweb.michael.orlitzky.com/?p=untangle-https-backup.git;a=blobdiff_plain;f=src%2Funtangle%2Funtangle.py;fp=src%2Funtangle%2Funtangle.py;h=570e89667ce329b0fd0b3c82a465ef7672ca702c;hp=6c996a0a7c2985031960a21dd5b423ba49e87aa3;hb=a55c225b9dd34e4c28c3e379c701ac8b6887d20f;hpb=0877d55bbba8cb53d7e846e3ecbf39f8ca141327 diff --git a/src/untangle/untangle.py b/src/untangle/untangle.py index 6c996a0..570e896 100644 --- a/src/untangle/untangle.py +++ b/src/untangle/untangle.py @@ -22,8 +22,9 @@ class Untangle: self.base_url = 'https://' + self.host + '/' # This never changes # Sanity check the numerical version. - self.version = s.get('version', '14') - if self.version not in ['9', '10', '11', '12', '13', '13.1', '14']: + self.version = s.get('version', '14.1') + if self.version not in ['9', '10', '11', '12', '13', '13.1', + '14', '14.1']: msg = 'Invalid version "' + self.version + '" ' msg += 'in section "' + s.name + '"' raise configparser.ParsingError(msg) @@ -110,7 +111,7 @@ class Untangle: elif self.version in ['10', '11', '12', '13']: # The procedure for v11, v12, or v13 is the same as for v10. return self.get_backup_v10() - elif self.version in ['13.1', '14']: + elif self.version in ['13.1', '14', '14.1']: # But the minor update v13.1 moved the backup URL. return self.get_backup_v13_1() else: