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(); } } }