Skip to content

Commit 47ca268

Browse files
author
Raahithya Jayaram
committed
fix: use cr_v instead of hardcoded string in ENCRLIB special case
1 parent 1937c4c commit 47ca268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/mas/devops/db2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def cr_pod_v_matches(cr_k: str, cr_v: str, pod_v: str) -> bool:
191191

192192
# special case for ENCRLIB — DB2 resolves the symlink and stores the full absolute path, so just check if the library name is present
193193
if cr_k == "ENCRLIB":
194-
return "libdb2compr_encr.so" in pod_v
194+
return cr_v in pod_v
195195

196196
# Look for e.g. 8192 AUTOMATIC -> AUTOMATIC(8192)
197197
matches = re.search(r"(\d+)\s*AUTOMATIC", cr_v, re.IGNORECASE)

0 commit comments

Comments
 (0)