[ARVADOS] updated: 1.3.0-322-gc9127a215

Git user git at public.curoverse.com
Thu Feb 14 12:33:25 EST 2019


Summary of changes:
 lib/dispatchcloud/test/stub_driver.go | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

       via  c9127a21551ef7689637f1782ea40d0f75822af2 (commit)
      from  b7f7154a7232e49b0e8ee5bc41d124ff2d15273c (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 c9127a21551ef7689637f1782ea40d0f75822af2
Author: Eric Biagiotti <ebiagiotti at veritasgenetcs.com>
Date:   Thu Feb 14 12:31:53 2019 -0500

    14745: Adds support for passing nil params to StubDriver InstanceSet
    
    Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <eric.biagiotti at gmail.com>

diff --git a/lib/dispatchcloud/test/stub_driver.go b/lib/dispatchcloud/test/stub_driver.go
index 0443f754d..fbab30b17 100644
--- a/lib/dispatchcloud/test/stub_driver.go
+++ b/lib/dispatchcloud/test/stub_driver.go
@@ -64,7 +64,12 @@ func (sd *StubDriver) InstanceSet(params json.RawMessage, id cloud.InstanceSetID
 		servers: map[cloud.InstanceID]*StubVM{},
 	}
 	sd.instanceSets = append(sd.instanceSets, &sis)
-	return &sis, json.Unmarshal(params, &sis)
+
+	var err error
+	if params != nil {
+		err = json.Unmarshal(params, &sis)
+	}
+	return &sis, err
 }
 
 // InstanceSets returns all instances that have been created by the

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list