From 4d96d4e01f452ac4181c8b4295c7c4930bdbe320 Mon Sep 17 00:00:00 2001 From: Bhavneet-Sharma Date: Wed, 21 May 2025 07:55:09 -0400 Subject: [PATCH] Updating README and PyLint workflow file Signed-off-by: Bhavneet-Sharma --- .github/workflows/pylint.yml | 15 ++++++++++++++- README.md | 10 ++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index bb496d8..3bd4fcb 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,19 @@ name: Run Lint Check via Pylint -on: [push] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +on: + # Run CI against all pushes (direct commits, also merged PRs), Pull Requests + workflow_dispatch: + push: + branches: + - main + pull_request: + # Runs CI on every day (at 06:00 UTC) + schedule: + - cron: '0 6 * * *' jobs: lint: diff --git a/README.md b/README.md index c38be70..e48d5fc 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,7 @@ client.fault_set.clear('fba27fae00000001') # Create volume from PyPowerFlex.objects.volume import VolumeType from PyPowerFlex.objects.volume import CompressionMethod +from PyPowerFlex.objects.volume import VolumeClass client.volume.create(storage_pool_id='76f2b2fd00000000', size_in_gb=40, name='new_thin_vol', @@ -216,6 +217,15 @@ client.volume.create(storage_pool_id='76f2b2fd00000000', use_rmcache=True, compression_method=CompressionMethod.normal) +# Volume can be created with custom volume class +client.volume.create(storage_pool_id='76f2b2fd00000001', + size_in_gb=40, + name='new_custom_class_volume', + volume_type=VolumeType.thin, + use_rmcache=True, + compression_method=CompressionMethod.normal, + volume_class=VolumeClass.datastore) + # Extend volume size client.volume.extend(volume_id='4a3a153e00000000', size_in_gb=48)