mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +00:00
fix golangci ? not too sure what's going on here
This commit is contained in:
committed by
André Roth
parent
b4a171b3ea
commit
a2fb925a94
+2
-2
@@ -48,9 +48,9 @@ func NewPublishedStorage(bucket, prefix, credentialsFile, serviceAccountJSON,
|
|||||||
if endpoint != "" {
|
if endpoint != "" {
|
||||||
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
|
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
|
||||||
} else if credentialsFile != "" {
|
} else if credentialsFile != "" {
|
||||||
opts = append(opts, option.WithCredentialsFile(credentialsFile))
|
opts = append(opts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile))
|
||||||
} else if serviceAccountJSON != "" {
|
} else if serviceAccountJSON != "" {
|
||||||
opts = append(opts, option.WithCredentialsJSON([]byte(serviceAccountJSON)))
|
opts = append(opts, option.WithAuthCredentialsJSON(option.ServiceAccount, []byte(serviceAccountJSON)))
|
||||||
}
|
}
|
||||||
|
|
||||||
if project != "" {
|
if project != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user