[ARVADOS] updated: 1.3.0-1621-gc06855c58
Git user
git at public.curoverse.com
Thu Sep 26 15:22:27 UTC 2019
Summary of changes:
services/keep-balance/main.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
via c06855c5828d25737e534928116e9a1f41aa64d9 (commit)
from ac74894758f1b56c449022810b45f833adcfefa7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit c06855c5828d25737e534928116e9a1f41aa64d9
Author: Eric Biagiotti <ebiagiotti at veritasgenetics.com>
Date: Thu Sep 26 11:22:18 2019 -0400
14714: Sets the token on the arvados client
Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti at veritasgenetics.com>
diff --git a/services/keep-balance/main.go b/services/keep-balance/main.go
index 92ed644b5..779614df0 100644
--- a/services/keep-balance/main.go
+++ b/services/keep-balance/main.go
@@ -26,13 +26,14 @@ var (
options RunOptions
)
-func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string) service.Handler {
+func newHandler(ctx context.Context, cluster *arvados.Cluster, token string) service.Handler {
if !options.Once && cluster.Collections.BalancePeriod == arvados.Duration(0) {
return service.ErrorHandler(ctx, cluster, fmt.Errorf("You must either run keep-balance with the -once flag, or set Collections.BalancePeriod in the config. "+
"If using the legacy keep-balance.yml config, RunPeriod is the equivalant of Collections.BalancePeriod."))
}
ac, err := arvados.NewClientFromConfig(cluster)
+ ac.AuthToken = token
if err != nil {
return service.ErrorHandler(ctx, cluster, fmt.Errorf("error initializing client from cluster config: %s", err))
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list