incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 3/5] client: make objects die loudly when trying to invoke an undefined method
Date Wed, 04 May 2011 22:42:05 GMT
From: David Lutterkort <lutter@redhat.com>

Right now, objects from the client just return nil when a completely
undefined method is invoked on them. With this change, they produce the
proper exception complaining about a missing method.

Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 client/lib/base_object.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/lib/base_object.rb b/client/lib/base_object.rb
index 43d7ee5..f6ef149 100644
--- a/client/lib/base_object.rb
+++ b/client/lib/base_object.rb
@@ -109,7 +109,7 @@ module DeltaCloud
         # First of all search throught array for method name
         m = search_for_method(method_name)
         if m.nil?
-          return nil
+          super
         else
           # Call appropriate handler for method
           method_handler(m, args)
-- 
1.7.4.4


Mime
View raw message