You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2011/05/05 00:42:05 UTC
[PATCH 3/5] client: make objects die loudly when trying to invoke an undefined method
From: David Lutterkort <lu...@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 <lu...@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