Skip to content

Commit d07fe19

Browse files
Fryyyyyramo-j
andauthored
Update libcloudforensics/providers/gcp/internal/compute.py
Co-authored-by: Ramo <ramo_j@protonmail.com>
1 parent 2639fb2 commit d07fe19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • libcloudforensics/providers/gcp/internal

libcloudforensics/providers/gcp/internal/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def _GetResourceFromComputeApi(
162162
"""
163163
client = getattr(self.GceApi(), resource_type)()
164164
if zone or region:
165-
param_name = resource_type[:-1] if resource_type.endswith(
166-
's') else resource_type
165+
param_name = (resource_type[:-1] if resource_type.endswith('s')
166+
else resource_type)
167167
if resource_type == 'instanceGroupManagers':
168168
param_name = 'instanceGroupManager'
169169
elif resource_type == 'regionDisks':

0 commit comments

Comments
 (0)