Skip to content
Snippets Groups Projects
Commit 5f56f498 authored by kayrus's avatar kayrus
Browse files

Add user agent

parent f29d5ed3
Branches
Tags v0.5.1
No related merge requests found
...@@ -170,7 +170,6 @@ func initRootCmdFlags() { ...@@ -170,7 +170,6 @@ func initRootCmdFlags() {
viper.BindPFlag("private-key-path", RootCmd.PersistentFlags().Lookup("private-key-path")) viper.BindPFlag("private-key-path", RootCmd.PersistentFlags().Lookup("private-key-path"))
viper.BindPFlag("wait", RootCmd.PersistentFlags().Lookup("wait")) viper.BindPFlag("wait", RootCmd.PersistentFlags().Lookup("wait"))
viper.BindPFlag("quiet", RootCmd.PersistentFlags().Lookup("quiet")) viper.BindPFlag("quiet", RootCmd.PersistentFlags().Lookup("quiet"))
} }
// newComputeV2 creates a ServiceClient that may be used with the v2 compute // newComputeV2 creates a ServiceClient that may be used with the v2 compute
...@@ -215,6 +214,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) { ...@@ -215,6 +214,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) {
} }
} }
provider.UserAgent.Prepend("nova-password/" + Version)
err = openstack.Authenticate(provider, *ao) err = openstack.Authenticate(provider, *ao)
if err != nil { if err != nil {
return nil, err return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment