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

Alexandre Derumier aderumier at odiso.com
Tue May 23 08:57:11 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 c9fd833..023a51a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6733,8 +6733,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