summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorxiaofengw-vmware <42736879+xiaofengw-vmware@users.noreply.github.com>2021-01-28 04:38:47 +0800
committerGitHub <noreply@github.com>2021-01-27 14:38:47 -0600
commit6efe16d8f28b89423f7e6e60fc0d4ab1f385f4d8 (patch)
tree1956566fb8c68007f19e96f2abc0413ffc7b22f8 /cloudinit
parente7e7b42900d83d540d69adf37962864b53dab602 (diff)
downloadvyos-cloud-init-6efe16d8f28b89423f7e6e60fc0d4ab1f385f4d8.tar.gz
vyos-cloud-init-6efe16d8f28b89423f7e6e60fc0d4ab1f385f4d8.zip
[VMware] change default max wait time to 15s (#774)
If cloud-init is enabled on VMware platform, cloud-init will wait until its configuration file is ready and currently the max wait is 90 seconds by default. With our test, this configuration file should be ready within 1 second, so change it to 15 seconds for better performance. Also update the documentation about how to change the default value in cloud-init configuration file.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceOVF.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py
index 94d9f1b9..bbeada0b 100644
--- a/cloudinit/sources/DataSourceOVF.py
+++ b/cloudinit/sources/DataSourceOVF.py
@@ -416,7 +416,7 @@ class DataSourceOVFNet(DataSourceOVF):
def get_max_wait_from_cfg(cfg):
- default_max_wait = 90
+ default_max_wait = 15
max_wait_cfg_option = 'vmware_cust_file_max_wait'
max_wait = default_max_wait