incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962345 - /incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb
Date Thu, 08 Jul 2010 23:48:11 GMT
Author: lutter
Date: Thu Jul  8 23:48:10 2010
New Revision: 962345

URL: http://svn.apache.org/viewvc?rev=962345&view=rev
Log:
Improved serializing of arguments

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb?rev=962345&r1=962344&r2=962345&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb Thu Jul  8 23:48:10
2010
@@ -46,6 +46,9 @@ module MethodSerializer
     end
 
     def args_hash(args)
+      if args.class == Hash
+        args = args.to_a.collect {|i| [i[0].to_s, i[1]]}.sort
+      end
       Digest::SHA1.hexdigest(args.to_s)
     end
 



Mime
View raw message