Tests: Fix failing tests in test_ipalib/test_frontend

Some tests in ipatests/test_ipalib/test_frontend.py are failing due to changes
related to thin client implementation. Providing fix for:
  ipa.test_ipalib.test_frontend.test_Attribute.test_init
  ipa.test_ipalib.test_frontend.test_LocalOrRemote.test_run

https://fedorahosted.org/freeipa/ticket/6188

Reviewed-By: Milan Kubik <mkubik@redhat.com>
This commit is contained in:
Lenka Doudova
2016-08-17 16:37:29 +02:00
committed by Martin Basti
parent 380ffcc052
commit 44a2bdd8ea
2 changed files with 7 additions and 7 deletions

View File

@@ -1181,7 +1181,7 @@ class LocalOrRemote(Command):
When running in a server context, this command is always executed
locally and the value of ``options['server']`` is ignored.
"""
if options['server'] and not self.env.in_server:
if options.get('server', False) and not self.env.in_server:
return self.forward(*args, **options)
return self.execute(*args, **options)