Skip to content

Commit 975a6a5

Browse files
authored
Force images of hyperdisks to be regular disks (#530)
* Force images of hyperdisks to be regular disks * Update github cache action to non-deprecated version * Update pylint
1 parent ca890ef commit 975a6a5

9 files changed

Lines changed: 30 additions & 162 deletions

File tree

.github/workflows/install_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
python -m pip install poetry
3030
- name: Cache the virtualenv
31-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3232
with:
3333
path: ./.venv
3434
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

.github/workflows/install_test_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python -m pip install poetry
2929
- name: Cache the virtualenv
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
with:
3232
path: ./.venv
3333
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

.github/workflows/install_test_setup_py.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
python -m pip install poetry
2727
- name: Cache the virtualenv
28-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2929
with:
3030
path: ./.venv
3131
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

.github/workflows/pylint_and_mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
python -m pip install poetry
2222
- name: Cache the virtualenv
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
path: ./.venv
2626
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build/
99
dist/
1010

1111
# virtualenv
12+
.venv/
1213
venv/
1314
ENV/
1415

libcloudforensics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
# Since moving to poetry, ensure the version number tracked in pyproject.toml is
1818
# also updated
19-
__version__ = '20250116'
19+
__version__ = '20250331'

libcloudforensics/providers/gcp/forensics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def CreateDiskCopy(
8585
if not disk_type:
8686
disk_type = disk_to_copy.GetDiskType()
8787

88+
if disk_type.startswith('hyperdisk'):
89+
logger.debug(
90+
'Disk type is {0:s}, using pd-standard instead.'.format(disk_type))
91+
disk_type = 'pd-standard'
92+
8893
logger.info('Disk copy of {0:s} started...'.format(disk_to_copy.name))
8994
snapshot, created = disk_to_copy.Snapshot()
9095
logger.debug('Snapshot created: {0:s}'.format(snapshot.name))

poetry.lock

Lines changed: 17 additions & 155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "libcloudforensics"
3-
version = "20250116"
3+
version = "20250331"
44
description = "libcloudforensics is a set of tools to help acquire forensic evidence from Cloud platforms."
55
authors = ["cloud-forensics-utils development team <cloud-forensics-utils-dev@googlegroups.com>"]
66
license = "Apache-2.0"
@@ -46,7 +46,7 @@ setuptools = "^75.8.0"
4646
coverage = "^7.2.7"
4747
mock = "^5.1.0"
4848
mypy = "^1.4.1"
49-
pylint = "^2.17.5"
49+
pylint = "^3.3.6"
5050
sphinx = "^7.1.2"
5151
sphinx-autodoc-typehints = "^1.24.0"
5252
yapf = "^0.40.1"

0 commit comments

Comments
 (0)