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

Alexandre Derumier aderumier at odiso.com
Sun Jun 18 15:03:19 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 df2ba69..b79a1e0 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6789,8 +6789,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