I am confused about a number of things with this patch; I'll pick out
one that seems the easiest to explain in the hopes that the answer
will allign my thinking:

I don't see how the following could work:

    def find(request)
-        return nil unless result =
deserialize(network(request).get(indirection2uri(request), headers))
+        return nil unless result =
network(request).request_get(indirection2uri(request), headers) do
|response|
+            return deserialize(response)
+        end
        result.name = request.key
        result
    end

Specifically, if the block containing "return deserialize(response)"
is called/yielded "live" I believe it should exit from the find method
without the result name being set to the result key, whereas if it is
stashed and called later (after find has returned) it should produce a
LocalJumpError.

If this code works, I'm obviously missing something.  Any idea what?

-- Markus

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to