[ARVADOS] updated: 326c51070de62ecbb498f3f182ae3653bfc9ee8d

Git user git at public.curoverse.com
Tue Oct 31 10:01:26 EDT 2017


Summary of changes:
 tools/arv-sync-groups/arv-sync-groups.go | 1 +
 1 file changed, 1 insertion(+)

       via  326c51070de62ecbb498f3f182ae3653bfc9ee8d (commit)
      from  9b83c3ee103d121e9406fa93e6e95ad303dee577 (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 326c51070de62ecbb498f3f182ae3653bfc9ee8d
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Tue Oct 31 11:00:28 2017 -0300

    12018: Set up fields per record, so it won't try to guess it from
    the first one being read.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/tools/arv-sync-groups/arv-sync-groups.go b/tools/arv-sync-groups/arv-sync-groups.go
index c853cd3..d7efdef 100644
--- a/tools/arv-sync-groups/arv-sync-groups.go
+++ b/tools/arv-sync-groups/arv-sync-groups.go
@@ -345,6 +345,7 @@ func ProcessFile(
 ) (groupsCreated, membersAdded, membersSkipped int, err error) {
 	lineNo := 0
 	csvReader := csv.NewReader(f)
+	csvReader.FieldsPerRecord = 2
 	for {
 		record, e := csvReader.Read()
 		if e == io.EOF {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list