mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
swift: Allow configs with user id instead of user name
This commit is contained in:
parent
d0b9baab13
commit
4a1013f2de
@ -200,8 +200,8 @@ func swiftConnection(name string) (*swift.Connection, error) {
|
||||
return nil, errors.Wrap(err, "failed to read environment variables")
|
||||
}
|
||||
}
|
||||
if c.UserName == "" {
|
||||
return nil, errors.New("user not found")
|
||||
if c.UserName == "" && c.UserId == "" {
|
||||
return nil, errors.New("user name or user id not found")
|
||||
}
|
||||
if c.ApiKey == "" {
|
||||
return nil, errors.New("key not found")
|
||||
|
Loading…
Reference in New Issue
Block a user