mirror of
https://github.com/rclone/rclone.git
synced 2024-12-25 00:19:13 +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")
|
return nil, errors.Wrap(err, "failed to read environment variables")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if c.UserName == "" {
|
if c.UserName == "" && c.UserId == "" {
|
||||||
return nil, errors.New("user not found")
|
return nil, errors.New("user name or user id not found")
|
||||||
}
|
}
|
||||||
if c.ApiKey == "" {
|
if c.ApiKey == "" {
|
||||||
return nil, errors.New("key not found")
|
return nil, errors.New("key not found")
|
||||||
|
Loading…
Reference in New Issue
Block a user