summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorchengcheng-chcheng <63850735+chengcheng-chcheng@users.noreply.github.com>2021-11-19 05:58:06 +0800
committerGitHub <noreply@github.com>2021-11-18 15:58:06 -0600
commit3c6b594b90b0647f398f41962def45fd0953ce5b (patch)
tree0be26d28d1b3783256c2d9ae75c70c3b2b97a093 /cloudinit/sources
parent62721ae71057530e41779ff02ce578b7b802a60f (diff)
downloadvyos-cloud-init-3c6b594b90b0647f398f41962def45fd0953ce5b.tar.gz
vyos-cloud-init-3c6b594b90b0647f398f41962def45fd0953ce5b.zip
VMware: source /etc/network/interfaces.d/* on Debian
For Debian, the network configure file was named /etc/network/interfaces.d/50-cloud-init, not the 50-cloud-init.cfg, related to https://github.com/canonical/cloud-init/blob/62721ae71057530e41779ff02ce578b7b802a60f/cloudinit/distros/debian.py#L56 the static IP customization on Debian will fail owing to "source /etc/network/interfaces.d/*.cfg". This change will fix this issue. LP: #1950136
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/helpers/vmware/imc/config_nic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/config_nic.py b/cloudinit/sources/helpers/vmware/imc/config_nic.py
index 9cd2c0c0..f5a0ebe4 100644
--- a/cloudinit/sources/helpers/vmware/imc/config_nic.py
+++ b/cloudinit/sources/helpers/vmware/imc/config_nic.py
@@ -274,7 +274,7 @@ class NicConfigurator(object):
lines = [
"# DO NOT EDIT THIS FILE BY HAND --"
" AUTOMATICALLY GENERATED BY cloud-init",
- "source /etc/network/interfaces.d/*.cfg",
+ "source /etc/network/interfaces.d/*",
"source-directory /etc/network/interfaces.d",
]