[ARVADOS] updated: 2.1.0-469-g345455504

Git user git at public.arvados.org
Thu Feb 25 16:23:31 UTC 2021


Summary of changes:
 services/api/lib/config_loader.rb | 2 ++
 1 file changed, 2 insertions(+)

       via  345455504379f59947c21c8a02c60d16ed73f9e4 (commit)
      from  f4753c9d24027e891e924cfa883c345be41f3916 (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 345455504379f59947c21c8a02c60d16ed73f9e4
Author: Nico Cesar <nico at nicocesar.com>
Date:   Thu Feb 25 11:22:04 2021 -0500

    API.MaxTokenLifetime expected ActiveSupport::Duration but was NilClass
    
    Arvados-DCO-1.1-Signed-off-by: Nico Cesar <nico at nicocesar.com>

diff --git a/services/api/lib/config_loader.rb b/services/api/lib/config_loader.rb
index f421fb5b2..262e62f68 100644
--- a/services/api/lib/config_loader.rb
+++ b/services/api/lib/config_loader.rb
@@ -127,6 +127,8 @@ class ConfigLoader
           cfg[k] = cfg[k].seconds
         elsif cfg[k].is_a? String
           cfg[k] = ConfigLoader.parse_duration(cfg[k], cfgkey: cfgkey)
+        elsif cfg[k].is_a?  NilClass
+          cfg[k] = 0.seconds
         end
       end
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list