summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index f324add29..cb00841f2 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -424,6 +424,8 @@ class Command(HasParam):
callback_types = ('interactive_prompt',)
+ api_version = API_VERSION
+
@property
def topic(self):
return type(self).__module__.rpartition('.')[2]
@@ -451,11 +453,11 @@ class Command(HasParam):
elif self.api.env.skip_version_check and not self.api.env.in_server:
options['version'] = u'2.0'
else:
- options['version'] = API_VERSION
+ options['version'] = self.api_version
if self.api.env.in_server:
# add message only on server side
self.add_message(
- messages.VersionMissing(server_version=API_VERSION))
+ messages.VersionMissing(server_version=self.api_version))
params = self.args_options_2_params(*args, **options)
self.debug(
'raw: %s(%s)', self.name, ', '.join(self._repr_iter(**params))