summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 19:43:42 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 19:43:42 -0700
commitfceec461dec835ecb23e75aafb84ee45710b6526 (patch)
treea2cf76b0afc3ddbc9d5064cf74e68a68b296aabe
parente6d8fc5e581b7ab4830eb9005ca10cecf02d3636 (diff)
downloadvyos-cloud-init-fceec461dec835ecb23e75aafb84ee45710b6526.tar.gz
vyos-cloud-init-fceec461dec835ecb23e75aafb84ee45710b6526.zip
Let read_file_or_url util function have good defaults
-rw-r--r--cloudinit/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 38ca9573..11986447 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -553,7 +553,7 @@ def read_optional_seed(fill, base="", ext="", timeout=5):
raise
-def read_file_or_url(url, timeout, retries, file_retries):
+def read_file_or_url(url, timeout=5, retries=10, file_retries=0):
if url.startswith("/"):
url = "file://%s" % url
if url.startswith("file://"):