Skip to content

Commit

Permalink
Fix definition of primary/backup backend attribute (#14)
Browse files Browse the repository at this point in the history
The comparison fails to distinguish between local and remote servers
because the type returned by the library is integer whilst the
environment variable NODE_ID is a string.

NethServer/dev#6905
  • Loading branch information
DavidePrincipi authored Mar 27, 2024
1 parent bf24d94 commit e6ae17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/bin/expand-template
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ for domain in domains:
'origin': domain,
'service': 'ldap',
'node': provider['node'],
'is_local': node_id == provider['node'],
'is_local': str(node_id) == str(provider['node']),
'port': str(provider['port']),
'host': provider['host'] if node_id != provider['node'] else '127.0.0.1',
}
Expand Down

0 comments on commit e6ae17e

Please sign in to comment.