Allow Marathon SD without bearer_token and bearer_token_file

This commit is contained in:
Michael Kraus 2017-03-02 13:17:19 +01:00
parent 47bdcf0f67
commit 04eadf6e20
1 changed files with 0 additions and 3 deletions

View File

@ -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
}