summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-12-16 13:02:12 +0100
committerMartin Kosek <mkosek@redhat.com>2015-02-13 08:52:15 +0100
commit9cbbcadd0471a5e4b695c57f49e5a02400848053 (patch)
tree3ea2d06e582a80e21c323c837f5a5ce570289135 /ipalib/frontend.py
parentd5035c0ed99c03e25d5890e4d6f12f1079e8d892 (diff)
downloadfreeipa-9cbbcadd0471a5e4b695c57f49e5a02400848053.tar.gz
freeipa-9cbbcadd0471a5e4b695c57f49e5a02400848053.tar.xz
freeipa-9cbbcadd0471a5e4b695c57f49e5a02400848053.zip
Fix warning message on client side
Add message about only on server side. https://fedorahosted.org/freeipa/ticket/4793 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index a9a3dfeaa..98070b843 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -437,7 +437,9 @@ class Command(HasParam):
self.validate(**params)
(args, options) = self.params_2_args_options(**params)
ret = self.run(*args, **options)
- if not version_provided and isinstance(ret, dict):
+ if (not version_provided and isinstance(ret, dict) and
+ self.api.env.in_server):
+ # add message only on server side
messages.add_message(
API_VERSION, ret,
messages.VersionMissing(server_version=API_VERSION))