Skip to content

Commit 52e4fd4

Browse files
authored
Add timeout to build step of cloudbuild export image method. (#533)
* Add timeout to build step of export method. * add newline due to tests failing
1 parent a520b8e commit 52e4fd4

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

libcloudforensics/providers/gcp/internal/compute.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,7 @@ def ExportImage(
22892289
build_args = [
22902290
'-source_image={0:s}'.format(self.name),
22912291
'-destination_uri={0:s}'.format(full_path),
2292+
'-timeout=86400s',
22922293
'-client_id=api',
22932294
]
22942295
if image_format:

tests/providers/gcp/test_forensics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,3 @@ def testCopyDisksToGCS(self, mock_project: mock.MagicMock) -> None:
177177
gcs_output_folder=f'gs://{dest_bucket_name}/{"/path/to/directory/"}',
178178
image_format='qcow2',
179179
output_name=mock_disk_obj.name)
180-

0 commit comments

Comments
 (0)