[pve-devel] [PATCH 13/20] cloudinit: use correct dns-search/nameserver config keys

Alexandre Derumier aderumier at odiso.com
Thu Jul 27 17:06:46 CEST 2017


From: Wolfgang Bumiller <w.bumiller at proxmox.com>

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a00f07b..bf34efa 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6793,8 +6793,8 @@ sub generate_cloudinit_network {
 	}
     }
 
-    $content .="        dns-nameservers $conf->{nameserver}\n" if $conf->{nameserver};
-    $content .="        dns-search $conf->{searchdomain}\n" if $conf->{searchdomain};
+    $content .="        dns_nameservers $conf->{nameserver}\n" if $conf->{nameserver};
+    $content .="        dns_search $conf->{searchdomain}\n" if $conf->{searchdomain};
 
     my $fn = "$path/drive/openstack/content/0000";
     file_write($fn, $content);
-- 
2.11.0




More information about the pve-devel mailing list