Fix: Missing value error in match-ldap-to-info 98/73898/1 master v0.37.16
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 20 Nov 2025 12:28:41 +0000 (22:28 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 20 Nov 2025 12:41:23 +0000 (22:41 +1000)
commit99099737a82cdf63ca7392cc03f9f19123d8c01b
tree800648a4c8431c9660542b49f6a9fbfca26296c5
parent701cb946aaa8cd7f280da81852e57d457d58d60f
Fix: Missing value error in match-ldap-to-info

The code unconditionally tried to remove 'lfservices_releng' from
the user list, causing ValueError when it doesn't exist in the LDAP
group (common in production environments).

Now checks if the user exists before attempting removal.
This was causing info-merge-master jobs to fail.
Fixes: ValueError: list.remove(x): x not in list

Issue: RELENG-5882
Change-Id: I3ca95ac1033c4c80e3642e2fcdbe840179134b14
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
lftools/lfidapi.py
releasenotes/notes/fix-match-ldap-lfservices-releng-8cdcb98e50ab12ba.yaml [new file with mode: 0644]