Skip to content

Commit 00539f7

Browse files
authored
Fix audit header (#34997)
1 parent 9f6ecc6 commit 00539f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/python/apache_beam/options/pipeline_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _add_entry(self, key, value):
187187
"The value '%s' in GCS custom audit entries exceeds the %d-character limit." # pylint: disable=line-too-long
188188
% (value, _GcsCustomAuditEntriesAction.MAX_VALUE_LENGTH))
189189

190-
if _GcsCustomAuditEntriesAction.GCS_AUDIT_PREFIX in key:
190+
if key.startswith(_GcsCustomAuditEntriesAction.GCS_AUDIT_PREFIX):
191191
self._custom_audit_entries[key] = value
192192
else:
193193
self._custom_audit_entries[_GcsCustomAuditEntriesAction.GCS_AUDIT_PREFIX +

0 commit comments

Comments
 (0)