Skip to content

Commit

Permalink
Merge pull request #3 from zjj2wry/panic
Browse files Browse the repository at this point in the history
fix when Id unknown causes null pointer exception
  • Loading branch information
zjj2wry authored Nov 20, 2020
2 parents a795d3f + 8c2612e commit b91d6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export GOBIN := $(PWD)/bin
export PATH := $(GOBIN):$(PATH)
export INSTALL_FLAG=
export TAG=0.4.1
export TAG=0.4.2

DOCKER_IMAGE = aws-limits-exporter
DOCKER_REPO = gcr.io/pingcap-public
Expand Down
2 changes: 2 additions & 0 deletions core/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ func (e *SupportExporter) Describe(ch chan<- *prometheus.Desc) {
result, err := e.supportClient.DescribeServiceLimitsCheckResult(checkID)
if err != nil {
glog.Errorf("Cannot retrieve Trusted Advisor check results data: %v", err)
continue
}

for _, resource := range result.FlaggedResources {
Expand Down Expand Up @@ -252,6 +253,7 @@ func (e *SupportExporter) Collect(ch chan<- prometheus.Metric) {
result, err := e.supportClient.DescribeServiceLimitsCheckResult(checkID)
if err != nil {
glog.Errorf("Cannot retrieve Trusted Advisor check results data: %v", err)
continue
}

for _, resource := range result.FlaggedResources {
Expand Down

0 comments on commit b91d6bd

Please sign in to comment.