mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
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>
This commit is contained in:
parent
d5035c0ed9
commit
9cbbcadd04
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user