swift: Allow configs with user id instead of user name
This commit is contained in:
parent
d0b9baab13
commit
4a1013f2de
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue