From bb072c5661ffcc8b1d69f9d8d15e8ff5839f5305 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 6 Mar 2012 17:06:09 -0500 Subject: add headers_cb to doc for wait_for_url --- cloudinit/util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit/util.py') diff --git a/cloudinit/util.py b/cloudinit/util.py index 882fd9fb..897f0a0d 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -761,6 +761,8 @@ def wait_for_url(urls, max_wait=None, timeout=None, be tried once and given the timeout provided. timeout: the timeout provided to urllib2.urlopen status_cb: call method with string message when a url is not available + headers_cb: call method with single argument of url to get headers + for request. the idea of this routine is to wait for the EC2 metdata service to come up. On both Eucalyptus and EC2 we have seen the case where -- cgit v1.2.3