Skip to content

config: fix JSON unmarshaling for HostPort#2134

Merged
simonpasquier merged 1 commit intoprometheus:release-0.20from
simonpasquier:fix-json-unmarshal
Dec 11, 2019
Merged

config: fix JSON unmarshaling for HostPort#2134
simonpasquier merged 1 commit intoprometheus:release-0.20from
simonpasquier:fix-json-unmarshal

Conversation

@simonpasquier
Copy link
Member

Closes #2129

ConfigYAML: "{}",
ConfigJSON: &config.Config{
Global: &config.GlobalConfig{
PagerdutyURL: &config.URL{u},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

composites: github.com/prometheus/alertmanager/config.URL composite literal uses unkeyed fields (govet)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would guess this means u needs to be given a key, but .. never seen this error before so :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly!

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier
Copy link
Member Author

@stuartnelson3 friendly ping

@simonpasquier simonpasquier merged commit 06adefb into prometheus:release-0.20 Dec 11, 2019
@simonpasquier simonpasquier deleted the fix-json-unmarshal branch December 11, 2019 07:56
simonpasquier added a commit that referenced this pull request Dec 12, 2019
* Revert "slack: retry 429 errors (#2112)" (#2128)

This reverts commit 26cc96a.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Revert "config: remove support for JSON marshaling (#2086)" (#2133)

This reverts commit 918f08b.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* config: fix JSON unmarshaling for HostPort (#2134)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Cut 0.20.0 (#2137)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants