Dynamically create plugin package for the remote server with modules and commands based on the API schema when client API is finalizes. For in-tree API instances, use ipalib.plugins directly. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
15 lines
248 B
Python
15 lines
248 B
Python
#
|
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
|
#
|
|
|
|
from . import schema
|
|
|
|
|
|
def get_package(api):
|
|
if api.env.in_tree:
|
|
from ipalib import plugins
|
|
else:
|
|
plugins = schema.get_package(api)
|
|
|
|
return plugins
|