Skip to content

Commit ba01af0

Browse files
committed
Changed the maybe_patch_libraries() check action to emit 'patched now, restart needed' errors in test or development, but not in production, where we don't care if the patches were applied earlier or just now.
- Legacy-Id: 18408
1 parent bb9bd8d commit ba01af0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def maybe_patch_library(app_configs, **kwargs):
321321
))
322322
else:
323323
# Patch succeeded or was a no-op
324-
if not patch_set.already_patched:
324+
if not patch_set.already_patched and settings.SERVER_MODE != 'production':
325325
errors.append(
326326
checks.Error("Found an unpatched file, and applied the patch in %s" % (patch_file),
327327
hint="You will need to re-run the command now that the patch in place.",

0 commit comments

Comments
 (0)