mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
plugable: Change is_production_mode to method of API
https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user