Factor UserAgent to fs and move Version to fs

This commit is contained in:
Nick Craig-Wood 2014-07-13 18:58:06 +01:00
parent e40b09fe61
commit c1a245d1c8
9 changed files with 18 additions and 15 deletions

View file

@ -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 {