From 0b187e549aea50e8e8b9558f8a39cd228b7580bb Mon Sep 17 00:00:00 2001 From: Mark Gilbert <50398495+MarkProminic@users.noreply.github.com> Date: Tue, 22 Nov 2022 21:39:18 -0600 Subject: [PATCH] fix: spacing --- .github/workflows/lint-release-and-publish.yml | 7 ++++--- lib/vagrant-zones/driver.rb | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-release-and-publish.yml b/.github/workflows/lint-release-and-publish.yml index 545d712..682ae56 100644 --- a/.github/workflows/lint-release-and-publish.yml +++ b/.github/workflows/lint-release-and-publish.yml @@ -10,15 +10,17 @@ on: jobs: release-please: runs-on: ubuntu-latest + env: + GEM_NAME: "vagrant-zones" steps: - uses: GoogleCloudPlatform/release-please-action@v2 id: release with: release-type: ruby - package-name: vagrant-zones + package-name: ${{ env.GEM_NAME }} bump-minor-pre-major: true bump-patch-for-minor-pre-major: true - version-file: "lib/vagrant-zones/version.rb" + version-file: "lib/${{ env.GEM_NAME }}/version.rb" # Checkout code if release was created - uses: actions/checkout@v2 @@ -41,7 +43,6 @@ jobs: run: bundle exec rake if: ${{ steps.release.outputs.release_created }} - # Publish to GPR - name: Publish to GPR run: | diff --git a/lib/vagrant-zones/driver.rb b/lib/vagrant-zones/driver.rb index 6e19ecf..8d6e3d0 100644 --- a/lib/vagrant-zones/driver.rb +++ b/lib/vagrant-zones/driver.rb @@ -508,7 +508,6 @@ def zonenicnatsetup_netplan(uii, opts, mac) ## Begin of code block to move to Netplan function uii.info(I18n.t('vagrant_zones.configure_interface_using_vnic')) uii.info(" #{vnic_name}") - 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 gateway4: #{defrouter}\n)