Skip to content

Commit

Permalink
Explicitly specify default parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng authored and mcgov committed Jun 5, 2024
1 parent 57b2f5e commit c2ed64b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lisa/sut_orchestrator/azure/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ def __hash__(self) -> int:

def query_platform(self, platform: "AzurePlatform") -> GalleryImage:
assert self.resource_group_name, "'resource_group_name' must not be 'None'"
compute_client = get_compute_client(platform, self.subscription_id)
compute_client = get_compute_client(
platform, subscription_id=self.subscription_id
)
sig = compute_client.gallery_images.get(
resource_group_name=self.resource_group_name,
gallery_name=self.image_gallery,
Expand All @@ -461,7 +463,9 @@ def query_platform(self, platform: "AzurePlatform") -> GalleryImage:
return sig

def resolve_version(self, platform: "AzurePlatform") -> None:
compute_client = get_compute_client(platform, self.subscription_id)
compute_client = get_compute_client(
platform, subscription_id=self.subscription_id
)
if not self.resource_group_name:
# /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Compute/
# galleries/xxxx
Expand Down

0 comments on commit c2ed64b

Please sign in to comment.