[ARVADOS] updated: 2.1.0-795-g5ab34436e

Git user git at public.arvados.org
Wed Jun 2 20:56:33 UTC 2021


Summary of changes:
 sdk/python/arvados/collection.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  5ab34436e2c47cebedd81fe6d38bdcbc40d6c373 (commit)
      from  744bbbafa5dcbba814391eaedfa9489c3614b644 (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 5ab34436e2c47cebedd81fe6d38bdcbc40d6c373
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Wed Jun 2 17:24:29 2021 -0300

    17465: Collection.save() adds storage_classes_desired when set on instance.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py
index 3910b2243..c000c8071 100644
--- a/sdk/python/arvados/collection.py
+++ b/sdk/python/arvados/collection.py
@@ -1583,6 +1583,8 @@ class Collection(RichCollectionBase):
 
         if storage_classes and type(storage_classes) is not list:
             raise errors.ArgumentError("storage_classes must be list type.")
+        if storage_classes:
+            self._storage_classes_desired = storage_classes
 
         if trash_at and type(trash_at) is not datetime.datetime:
             raise errors.ArgumentError("trash_at must be datetime type.")
@@ -1590,8 +1592,7 @@ class Collection(RichCollectionBase):
         body={}
         if properties:
             body["properties"] = properties
-        if storage_classes:
-            self._storage_classes_desired = storage_classes
+        if self.storage_classes_desired():
             body["storage_classes_desired"] = self.storage_classes_desired()
         if trash_at:
             t = trash_at.strftime("%Y-%m-%dT%H:%M:%S.%fZ")

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list