lib/onering/util.rb in onering-client-0.3.3 vs lib/onering/util.rb in onering-client-0.3.4
- old
+ new
@@ -107,19 +107,19 @@
# remove the first part and return the rest
name = name.sub(/^[^\.]+\./,'')
return fact_value.get(name, default)
else
# not an object, return default
- return reporter.report().get(name, default)
+ return default
end
else
# this is a simple request, return the fact
return fact_value
end
end
end
- return reporter.report().get(name, default)
+ return default
end
def make_filter(filter)
filter = filter.collect{|k,v| "#{k}/#{v}" } if filter.is_a?(Hash)
filter = filter.collect{|i| i.sub(':','/') }.join("/") if filter.is_a?(Array)
\ No newline at end of file