diff options
| author | Jan Cholasta <jcholast@redhat.com> | 2015-06-22 10:59:35 +0000 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2015-07-01 13:05:30 +0000 |
| commit | 4b277d04771bece11f5cc9fe04cc04d3f2ded165 (patch) | |
| tree | 050034eff53e762a494490b0aeb5df8e24a133a0 /ipalib/frontend.py | |
| parent | 1a21fd971ccc26cf8f06d1ba965b263856be56c6 (diff) | |
| download | freeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.tar.gz freeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.tar.xz freeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.zip | |
plugable: Change is_production_mode to method of API
https://fedorahosted.org/freeipa/ticket/3090
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipalib/frontend.py')
| -rw-r--r-- | ipalib/frontend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index c36bfca46..af201fc9a 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -27,7 +27,7 @@ from distutils import version from ipapython.version import API_VERSION from ipapython.ipa_log_manager import root_logger from base import NameSpace -from plugable import Plugin, is_production_mode +from plugable import Plugin from parameters import create_param, Param, Str, Flag, Password from output import Output, Entry, ListOfEntries from text import _ @@ -359,7 +359,7 @@ class HasParam(Plugin): self._filter_param_by_context(name, env), sort=False ) - if not is_production_mode(self): + if not self.api.is_production_mode(): check = getattr(self, 'check_' + name, None) if callable(check): check(namespace) |
