summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-03-06 17:06:09 -0500
committerScott Moser <smoser@ubuntu.com>2012-03-06 17:06:09 -0500
commitbb072c5661ffcc8b1d69f9d8d15e8ff5839f5305 (patch)
tree90fa43a39b9001d4f8bd7a01cdf761adcc9e0605 /cloudinit
parentaacbeeb6dad8d987dfbc1a70f79214b72d85e67a (diff)
downloadvyos-cloud-init-bb072c5661ffcc8b1d69f9d8d15e8ff5839f5305.tar.gz
vyos-cloud-init-bb072c5661ffcc8b1d69f9d8d15e8ff5839f5305.zip
add headers_cb to doc for wait_for_url
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py2
1 files changed, 2 insertions, 0 deletions
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