Factor UserAgent to fs and move Version to fs
This commit is contained in:
parent
e40b09fe61
commit
c1a245d1c8
9 changed files with 18 additions and 15 deletions
|
@ -107,9 +107,10 @@ func swiftConnection(name string) (*swift.Connection, error) {
|
|||
return nil, errors.New("auth not found")
|
||||
}
|
||||
c := &swift.Connection{
|
||||
UserName: userName,
|
||||
ApiKey: apiKey,
|
||||
AuthUrl: authUrl,
|
||||
UserName: userName,
|
||||
ApiKey: apiKey,
|
||||
AuthUrl: authUrl,
|
||||
UserAgent: fs.UserAgent,
|
||||
}
|
||||
err := c.Authenticate()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue