diff options
| author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 19:43:42 -0700 |
|---|---|---|
| committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 19:43:42 -0700 |
| commit | fceec461dec835ecb23e75aafb84ee45710b6526 (patch) | |
| tree | a2cf76b0afc3ddbc9d5064cf74e68a68b296aabe | |
| parent | e6d8fc5e581b7ab4830eb9005ca10cecf02d3636 (diff) | |
| download | vyos-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.py | 2 |
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://"): |
