Skip to content

Commit

Permalink
Issue 6034 - Change replica_id from str to int
Browse files Browse the repository at this point in the history
Bug Description:

dscreate create-template claims replica_id is (str)
but it should be an int

Fix Description:

Change self._type['replica_id'] = str
to self._type['replica_id'] = int

Fixes: #6033

Author: Andrew Elwell <[email protected]>

Reviewed by: @vashirov
  • Loading branch information
Elwell authored and vashirov committed Jan 17, 2024
1 parent bcea662 commit 18a1c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib389/lib389/instance/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def __init__(self, log, section):
self._helptext['replica_role'] = "Set the replication role. Choose either 'supplier', 'hub', or 'consumer'"

self._options['replica_id'] = "1"
self._type['replica_id'] = str
self._type['replica_id'] = int
self._helptext['replica_id'] = "Set the unique replication identifier for this replica's database (suppliers only)"

self._options['replica_binddn'] = "cn=replication manager,cn=config"
Expand Down

0 comments on commit 18a1c6b

Please sign in to comment.