From 5f56f4988d7f5e58db43bb21d8b9dc3e9e6fa3a9 Mon Sep 17 00:00:00 2001 From: kayrus <kay.diam@gmail.com> Date: Fri, 2 Oct 2020 18:05:21 +0200 Subject: [PATCH] Add user agent --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index be4f53e..173c3f0 100644 --- a/main.go +++ b/main.go @@ -170,7 +170,6 @@ func initRootCmdFlags() { viper.BindPFlag("private-key-path", RootCmd.PersistentFlags().Lookup("private-key-path")) viper.BindPFlag("wait", RootCmd.PersistentFlags().Lookup("wait")) viper.BindPFlag("quiet", RootCmd.PersistentFlags().Lookup("quiet")) - } // newComputeV2 creates a ServiceClient that may be used with the v2 compute @@ -215,6 +214,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) { } } + provider.UserAgent.Prepend("nova-password/" + Version) err = openstack.Authenticate(provider, *ao) if err != nil { return nil, err -- GitLab