[ARVADOS] updated: 1.1.1-155-g6061688
Git user
git at public.curoverse.com
Tue Dec 5 15:41:11 EST 2017
Summary of changes:
tools/sync-groups/sync-groups.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via 606168825167357b59022e8f893ff1dbb02c7a6c (commit)
from 0cbcf8cb892c6011ae162e840e1892602d8af940 (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 606168825167357b59022e8f893ff1dbb02c7a6c
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date: Tue Dec 5 15:40:49 2017 -0500
Do not hardcode the name of the executable in the sync-groups code.
refs #12018
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>
diff --git a/tools/sync-groups/sync-groups.go b/tools/sync-groups/sync-groups.go
index 6b4781c..ebc40b1 100644
--- a/tools/sync-groups/sync-groups.go
+++ b/tools/sync-groups/sync-groups.go
@@ -130,7 +130,7 @@ func ParseFlags(config *ConfigParams) error {
"username": true,
}
- flags := flag.NewFlagSet("arv-sync-groups", flag.ExitOnError)
+ flags := flag.NewFlagSet(os.Args[0], flag.ExitOnError)
// Set up usage message
flags.Usage = func() {
@@ -166,7 +166,7 @@ func ParseFlags(config *ConfigParams) error {
// Print version information if requested
if *getVersion {
- fmt.Printf("arv-sync-groups %s\n", version)
+ fmt.Printf("%s %s\n", os.Args[0], version)
os.Exit(0)
}
@@ -288,7 +288,7 @@ func doMain(cfg *ConfigParams) error {
}
defer f.Close()
- log.Printf("arv-sync-groups %s started. Using %q as users id and parent group UUID %q", version, cfg.UserID, cfg.ParentGroupUUID)
+ log.Printf("%s %s started. Using %q as users id and parent group UUID %q", os.Args[0], version, cfg.UserID, cfg.ParentGroupUUID)
// Get the complete user list to minimize API Server requests
allUsers := make(map[string]arvados.User)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list