diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-10-11 18:23:20 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-10-11 18:23:20 -0700 |
commit | 4994f7cb475713be523f96e077a76f801e6d1db5 (patch) | |
tree | 99a40dd26ed295f500ec85cd68f28f4bd91edf34 /cloudinit/util.py | |
parent | c5341fe07b767735e9ed74e45cee9629c6434892 (diff) | |
download | vyos-cloud-init-4994f7cb475713be523f96e077a76f801e6d1db5.tar.gz vyos-cloud-init-4994f7cb475713be523f96e077a76f801e6d1db5.zip |
Allow the omnibus url fetching retries to be configurable
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index f236d0bf..71221e09 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -399,6 +399,10 @@ def get_cfg_option_str(yobj, key, default=None): return val +def get_cfg_option_int(yobj, key, default=0): + return int(get_cfg_option_str(yobj, key, default=default)) + + def system_info(): return { 'platform': platform.platform(), |