From b5047e51fe6822d3933cda827000a1c314208ab0 Mon Sep 17 00:00:00 2001 From: Eli Yukelzon Date: Thu, 15 Oct 2020 18:01:31 +0300 Subject: [PATCH] on prem/cloud validation fixed (#15972) --- model/product_notices.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/product_notices.go b/model/product_notices.go index c2a38780cc..6aa88fc7ec 100644 --- a/model/product_notices.go +++ b/model/product_notices.go @@ -160,6 +160,9 @@ func (t *NoticeInstanceType) Matches(isCloud bool) bool { if *t == NoticeInstanceType_Cloud && !isCloud { return false } + if *t == NoticeInstanceType_OnPrem && isCloud { + return false + } return true }