From dd0c755134b7f845d869e137332ace99cd4ed19a Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:14:13 +0000 Subject: [PATCH] Linting issues --- .github/actionlint.yaml | 7 +++++++ .github/workflows/vsphere.yaml | 4 ++-- runner_manager/backend/vsphere.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 00000000..2111aee3 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,7 @@ +--- +self-hosted-runner: + labels: + - vsphere + - ubuntu + - jammy + - large diff --git a/.github/workflows/vsphere.yaml b/.github/workflows/vsphere.yaml index c8ac116c..585ebca0 100644 --- a/.github/workflows/vsphere.yaml +++ b/.github/workflows/vsphere.yaml @@ -6,7 +6,7 @@ on: branches: - main paths: - - 'runner_manager/backend/vsphere.py' + - runner_manager/backend/vsphere.py push: branches: - main @@ -17,7 +17,7 @@ permissions: jobs: vsphere: - name: "vsphere" + name: vsphere runs-on: - self-hosted - vsphere diff --git a/runner_manager/backend/vsphere.py b/runner_manager/backend/vsphere.py index 5d6991a3..60a568b9 100644 --- a/runner_manager/backend/vsphere.py +++ b/runner_manager/backend/vsphere.py @@ -11,7 +11,7 @@ PropertyParams, ) from com.vmware.vcenter.vm_client import Power -from com.vmware.vcenter_client import VM, Datacenter, Datastore, ResourcePool +from com.vmware.vcenter_client import Datacenter, ResourcePool from pydantic import Field from requests import Session from vmware.vapi.vsphere.client import VsphereClient, create_vsphere_client