From 11648730f660718727397811ec4e741273bbaaeb Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Thu, 24 Aug 2023 10:50:54 -0400 Subject: [PATCH] update validating recording logic --- src/main/java/io/cryostat/agent/remote/RecordingsContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java index a399a5f5..49c83662 100644 --- a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java +++ b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java @@ -388,7 +388,7 @@ boolean isValid() { boolean requestsBundledTemplate = requestsBundledTemplate(); boolean requestsEither = requestsCustomTemplate || requestsBundledTemplate; boolean requestsBoth = requestsCustomTemplate && requestsBundledTemplate; - return requestsEither && !requestsBoth && !requestSnapshot(); + return (requestsEither && !requestsBoth) || requestSnapshot(); } } }