Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8 from sacloud/set_useragent
Browse files Browse the repository at this point in the history
Set lisacloud user agent to 'Sackerel'
  • Loading branch information
yamamoto-febc authored Oct 19, 2016
2 parents b542b21 + cdf5284 commit b3253bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions job/worker/sacloud/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"github.com/sacloud/libsacloud/api"
"github.com/sacloud/sackerel/job/core"
"github.com/sacloud/sackerel/version"
"reflect"
)

Expand All @@ -26,6 +27,7 @@ func getClient(option *core.Option, zone string) *api.Client {

client := api.NewClient(o.AccessToken, o.AccessTokenSecret, zone)
client.TraceMode = o.TraceMode
client.UserAgent = fmt.Sprintf("Sackerel/%s", version.Version)

return client

Expand Down

0 comments on commit b3253bc

Please sign in to comment.