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)