[ARVADOS] updated: 2.1.0-825-gcd6647b38
Git user
git at public.arvados.org
Tue Jun 8 14:48:53 UTC 2021
Summary of changes:
lib/costanalyzer/cmd.go | 4 ++--
lib/costanalyzer/costanalyzer.go | 1 -
lib/costanalyzer/costanalyzer_test.go | 4 ----
3 files changed, 2 insertions(+), 7 deletions(-)
via cd6647b38be0ca224f98fe9e38ec315947e0f7f2 (commit)
from 41e0df276eaaa548e692e44cd8f3c27c4692375e (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 cd6647b38be0ca224f98fe9e38ec315947e0f7f2
Author: Ward Vandewege <ward at curii.com>
Date: Tue Jun 8 10:47:31 2021 -0400
17717: more changes post review: remove unneeded debug print, switch
Command to value receiver.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>
diff --git a/lib/costanalyzer/cmd.go b/lib/costanalyzer/cmd.go
index c44f32862..525ec619b 100644
--- a/lib/costanalyzer/cmd.go
+++ b/lib/costanalyzer/cmd.go
@@ -12,7 +12,7 @@ import (
"github.com/sirupsen/logrus"
)
-var Command = &command{}
+var Command = command{}
type command struct {
uuids arrayFlags
@@ -29,7 +29,7 @@ func (f *NoPrefixFormatter) Format(entry *logrus.Entry) ([]byte, error) {
}
// RunCommand implements the subcommand "costanalyzer <collection> <collection> ..."
-func (c *command) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
+func (c command) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
var err error
logger := ctxlog.New(stderr, "text", "info")
defer func() {
diff --git a/lib/costanalyzer/costanalyzer.go b/lib/costanalyzer/costanalyzer.go
index 9773109ad..edaaa5bd1 100644
--- a/lib/costanalyzer/costanalyzer.go
+++ b/lib/costanalyzer/costanalyzer.go
@@ -161,7 +161,6 @@ Options:
exitCode = 2
return
}
- fmt.Printf("UUIDS: %s\n", c.uuids)
lvl, err := logrus.ParseLevel(*loglevel)
if err != nil {
diff --git a/lib/costanalyzer/costanalyzer_test.go b/lib/costanalyzer/costanalyzer_test.go
index a3c123b51..bf280ec0c 100644
--- a/lib/costanalyzer/costanalyzer_test.go
+++ b/lib/costanalyzer/costanalyzer_test.go
@@ -114,10 +114,6 @@ func (s *Suite) SetUpSuite(c *check.C) {
createNodeJSON(c, arv, ac, kc, arvadostest.CompletedDiagnosticsHasher3ContainerRequestUUID, arvadostest.Hasher3LogCollectionUUID, legacyD1V2JSON)
}
-func (s *Suite) SetUpTest(c *check.C) {
- Command = &command{}
-}
-
func createNodeJSON(c *check.C, arv *arvadosclient.ArvadosClient, ac *arvados.Client, kc *keepclient.KeepClient, crUUID string, logUUID string, nodeJSON string) {
// Get the CR
var cr arvados.ContainerRequest
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list