mirror of
https://github.com/rclone/rclone.git
synced 2026-10-25 21:08:34 -04:00
swift: Allow configs with user id instead of user name
This commit is contained in:
1 parent
d0b9baab13
commit
4a1013f2de
1 file changed
+2
-2
+2
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user