From ebd8d80ff6f773ef7cfe51c8e8c6f523cdc1b833 Mon Sep 17 00:00:00 2001 From: Ramon Butter Date: Wed, 22 Dec 2021 15:48:45 +0100 Subject: [PATCH] fix for sending servicelog to cluster by using a query --- cmd/servicelog/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/servicelog/post.go b/cmd/servicelog/post.go index 1022acb0..7f83ff64 100644 --- a/cmd/servicelog/post.go +++ b/cmd/servicelog/post.go @@ -51,7 +51,7 @@ var postCmd = &cobra.Command{ readFilterFile() // parse the ocm filters in file provided via '-f' flag readTemplate() // parse the given JSON template provided via '-t' flag - if len(args) < 1 && filtersFromFile == "" && clustersFile == "" { + if len(args) == 0 && len(filterParams) == 0 && clustersFile == "" { log.Fatalf("No cluster identifier has been found.") }