incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject Fix for undefined method error in client
Date Wed, 06 Oct 2010 11:42:49 GMT
Hi,

This small addition to client code will return nil if
wanted attribute is not present in API.
This obviously happens in Hardware Profiles, where you could
have 'opaque' profile with no memory/cpu.
Instead of returning NoMethodError exception, I added 'method_missing'
which will throw warning and return nil.

 -- Michal


Mime
View raw message