From 570ae2e2d5f80df885eeb5cb1565f3909269be80 Mon Sep 17 00:00:00 2001 From: Mark Gilbert <50398495+MarkProminic@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:11:08 -0600 Subject: [PATCH] fix: double spacing --- lib/vagrant-zones/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-zones/driver.rb b/lib/vagrant-zones/driver.rb index bd109aa..4cc95b4 100644 --- a/lib/vagrant-zones/driver.rb +++ b/lib/vagrant-zones/driver.rb @@ -527,7 +527,7 @@ def zonenicnatsetup_netplan(uii, opts, mac) netplan1 = %(network:\n version: 2\n ethernets:\n #{vnic_name}:\n match:\n macaddress: #{mac}\n) netplan2 = %( dhcp-identifier: mac\n dhcp4: #{opts[:dhcp4]}\n dhcp6: #{opts[:dhcp6]}\n) netplan3 = %( set-name: #{vnic_name}\n addresses: [#{ip}/#{shrtsubnet}]\n routes:\n - to: default\n via: #{defrouter}\n) - netplan4 = %( nameservers:\n addresses: [#{servers}] ) unless opts[:dns].nil? + netplan4 = %( nameservers:\n addresses: [#{servers}] ) unless opts[:dns].nil? netplan = netplan1 + netplan2 + netplan3 + netplan4 cmd = "echo -e '#{netplan}' | sudo tee /etc/netplan/#{vnic_name}.yaml && chmod 400 /etc/netplan/#{vnic_name}.yaml" uii.info(I18n.t('vagrant_zones.netplan_applied_static') + "/etc/netplan/#{vnic_name}.yaml") if ssh_run_command(uii, cmd)