Skip to content

Commit

Permalink
Stop duplicate entries for idmap being created
Browse files Browse the repository at this point in the history
The current code assumes spaces around the idmap colon parameter and leaves duplicate entries if in the original file.
  • Loading branch information
simpz authored Oct 29, 2024
1 parent feb52a1 commit 8d35d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
samba::option { "idmap config ${idmap_domain} : ${idmap_option}":
value => $idmap_value,
}
# Remove any identical entries without spacing:
samba::option { "idmap config ${idmap_domain}:${idmap_option}":
value => '',
}
}
}

Expand Down

0 comments on commit 8d35d0c

Please sign in to comment.