From 04eadf6e20bd6c548139ed5d0aa98c06c4de4232 Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Thu, 2 Mar 2017 13:17:19 +0100 Subject: [PATCH] Allow Marathon SD without bearer_token and bearer_token_file --- config/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/config.go b/config/config.go index 489b85f03..05559f62c 100644 --- a/config/config.go +++ b/config/config.go @@ -945,9 +945,6 @@ func (c *MarathonSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) erro if len(c.BearerToken) > 0 && len(c.BearerTokenFile) > 0 { return fmt.Errorf("at most one of bearer_token & bearer_token_file must be configured") } - if len(c.BearerToken) == 0 && len(c.BearerTokenFile) == 0 { - return fmt.Errorf("at most one of bearer_token & bearer_token_file must be configured") - } return nil }