diff --git a/main.go b/main.go index be4f53e1c2dcb2dc2cc8aee823bf34b9d6825513..173c3f054e940b945ae511380887ee8432817c2f 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