From 9a1e250f91880a12521ffe1fad666bfe381e63b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:03:54 -0700 Subject: [PATCH] fix: bump github.com/gophercloud/gophercloud from 0.16.0 to 0.24.0 (#10693) --- go.mod | 2 +- go.sum | 3 ++- plugins/inputs/openstack/openstack.go | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 27369d38a..e1eb93db5 100644 --- a/go.mod +++ b/go.mod @@ -68,7 +68,7 @@ require ( github.com/google/go-cmp v0.5.7 github.com/google/go-github/v32 v32.1.0 github.com/gopcua/opcua v0.3.1 - github.com/gophercloud/gophercloud v0.16.0 + github.com/gophercloud/gophercloud v0.24.0 github.com/gorilla/mux v1.8.0 github.com/gorilla/websocket v1.4.2 github.com/gosnmp/gosnmp v1.34.0 diff --git a/go.sum b/go.sum index 8042365ed..0a9528bbe 100644 --- a/go.sum +++ b/go.sum @@ -1149,8 +1149,9 @@ github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97Dwqy github.com/gookit/color v1.3.6/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gopcua/opcua v0.3.1 h1:BS1TRJUdsPSwU0mlfc8Dffchh0jTw9lWchmF4HFRo2w= github.com/gopcua/opcua v0.3.1/go.mod h1:rdqS1oF5s/+Ko4SnhZA+3tgK4MQuXDzH3KgnnLDaCCQ= -github.com/gophercloud/gophercloud v0.16.0 h1:sWjPfypuzxRxjVbk3/MsU4H8jS0NNlyauZtIUl78BPU= github.com/gophercloud/gophercloud v0.16.0/go.mod h1:wRtmUelyIIv3CSSDI47aUwbs075O6i+LY+pXsKCBsb4= +github.com/gophercloud/gophercloud v0.24.0 h1:jDsIMGJ1KZpAjYfQgGI2coNQj5Q83oPzuiGJRFWgMzw= +github.com/gophercloud/gophercloud v0.24.0/go.mod h1:Q8fZtyi5zZxPS/j9aj3sSxtvj41AdQMDwyo1myduD5c= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= diff --git a/plugins/inputs/openstack/openstack.go b/plugins/inputs/openstack/openstack.go index 14e54ddff..3a2edc052 100644 --- a/plugins/inputs/openstack/openstack.go +++ b/plugins/inputs/openstack/openstack.go @@ -128,7 +128,7 @@ var sampleConfig = ` username = "admin" password = "password" - ## Available services are: + ## Available services are: ## "agents", "aggregates", "flavors", "hypervisors", "networks", "nova_services", ## "ports", "projects", "servers", "services", "stacks", "storage_pools", "subnets", "volumes" # enabled_services = ["services", "projects", "hypervisors", "flavors", "networks", "volumes"] @@ -152,7 +152,7 @@ var sampleConfig = ` ## Use TLS but skip chain & host verification # insecure_skip_verify = false - ## Options for tags received from Openstack + ## Options for tags received from Openstack # tag_prefix = "openstack_tag_" # tag_value = "true" @@ -161,7 +161,7 @@ var sampleConfig = ` # human_readable_timestamps = false ## Measure Openstack call duration - # measure_openstack_requests = false + # measure_openstack_requests = false ` // SampleConfig return a sample configuration file for auto-generation and @@ -612,7 +612,7 @@ func (o *OpenStack) gatherProjects(acc telegraf.Accumulator) error { // gatherHypervisors collects and accumulates hypervisors data from the OpenStack API. func (o *OpenStack) gatherHypervisors(acc telegraf.Accumulator) error { - page, err := hypervisors.List(o.compute).AllPages() + page, err := hypervisors.List(o.compute, hypervisors.ListOpts{}).AllPages() if err != nil { return fmt.Errorf("unable to list hypervisors %v", err) }