From ba01af0c4da213408d513964d392403627a0976f Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 24 Aug 2020 11:29:41 +0000 Subject: [PATCH] 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 --- ietf/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/checks.py b/ietf/checks.py index 3499cdd27..62833f602 100644 --- a/ietf/checks.py +++ b/ietf/checks.py @@ -321,7 +321,7 @@ def maybe_patch_library(app_configs, **kwargs): )) else: # Patch succeeded or was a no-op - if not patch_set.already_patched: + if not patch_set.already_patched and settings.SERVER_MODE != 'production': errors.append( checks.Error("Found an unpatched file, and applied the patch in %s" % (patch_file), hint="You will need to re-run the command now that the patch in place.",