Fix version check

This commit is contained in:
Lorenz Diener 2017-12-14 13:32:52 +01:00
pare 5a94c46bb4
commit 20c1d95b45

Veure arxiu

@ -44,7 +44,7 @@ def api_version(created_ver, last_changed_ver):
def wrapper(function, self, *args, **kwargs): def wrapper(function, self, *args, **kwargs):
if not self.version_check_mode == "none": if not self.version_check_mode == "none":
if self.version_check_mode == "created": if self.version_check_mode == "created":
version = created_version version = created_ver
else: else:
version = last_changed_ver version = last_changed_ver
major, minor, patch = parse_version_string(version) major, minor, patch = parse_version_string(version)