[ARVADOS] updated: 2e89e1ddea9ecaca5352dfa557c275f35830ee1c

git at public.curoverse.com git at public.curoverse.com
Wed Feb 12 00:08:05 EST 2014


Summary of changes:
 sdk/perl/lib/Arvados/ResourceMethod.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

       via  2e89e1ddea9ecaca5352dfa557c275f35830ee1c (commit)
      from  8ebf6b6a0911f336e5cb5a31ac8aa8bb4cc0d6d1 (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 2e89e1ddea9ecaca5352dfa557c275f35830ee1c
Author: Tom Clegg <tom at curoverse.com>
Date:   Tue Feb 11 21:07:52 2014 -0800

    Allow passing hashes as resource attributes. This lets crunch-job keep
    jobs.tasks_summary up to date.

diff --git a/sdk/perl/lib/Arvados/ResourceMethod.pm b/sdk/perl/lib/Arvados/ResourceMethod.pm
index 0aaf994..649d779 100644
--- a/sdk/perl/lib/Arvados/ResourceMethod.pm
+++ b/sdk/perl/lib/Arvados/ResourceMethod.pm
@@ -76,6 +76,12 @@ sub execute
                     if (ref $property eq '' || $property eq undef) {
                         $param_value{$property_name} = $property;
                     }
+                    elsif (ref $property eq 'HASH') {
+                        $param_value{$property_name} = {};
+                        while (my ($k, $v) = each %$property) {
+                            $param_value{$property_name}->{$k} = $v;
+                        }
+                    }
                 }
             }
             $body_params{$param_name} = \%param_value;

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list