Browse Source

Allow Marathon SD without bearer_token and bearer_token_file

pull/2462/head
Michael Kraus 8 years ago
parent
commit
04eadf6e20
  1. 3
      config/config.go

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

Loading…
Cancel
Save