mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +00:00
ipatrust: Fix support for range_type.
The ipatrust module was ignoring the value of `range_type`, which is required to allow for different types of idranges.
This commit is contained in:
@@ -157,7 +157,7 @@ def add_trust(module, realm, args):
|
|||||||
|
|
||||||
|
|
||||||
def gen_args(trust_type, admin, password, server, trust_secret, base_id,
|
def gen_args(trust_type, admin, password, server, trust_secret, base_id,
|
||||||
range_size, _range_type, two_way, external):
|
range_size, range_type, two_way, external):
|
||||||
_args = {}
|
_args = {}
|
||||||
if trust_type is not None:
|
if trust_type is not None:
|
||||||
_args["trust_type"] = trust_type
|
_args["trust_type"] = trust_type
|
||||||
@@ -173,6 +173,8 @@ def gen_args(trust_type, admin, password, server, trust_secret, base_id,
|
|||||||
_args["base_id"] = base_id
|
_args["base_id"] = base_id
|
||||||
if range_size is not None:
|
if range_size is not None:
|
||||||
_args["range_size"] = range_size
|
_args["range_size"] = range_size
|
||||||
|
if range_type is not None:
|
||||||
|
_args["range_type"] = range_type
|
||||||
if two_way is not None:
|
if two_way is not None:
|
||||||
_args["bidirectional"] = two_way
|
_args["bidirectional"] = two_way
|
||||||
if external is not None:
|
if external is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user