Skip to content

Commit

Permalink
Merge pull request #2026 from jemrobinson/sre-deployment-fixes
Browse files Browse the repository at this point in the history
SRE deployment fixes
  • Loading branch information
jemrobinson authored Jul 19, 2024
2 parents e140cbd + 812139e commit 17e9ffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def wait(poller: LROPoller[None]) -> None:
@property
def current_ip_address(self) -> str:
aci_client = ContainerInstanceManagementClient(
self.azure_sdk.credential, self.azure_sdk.subscription_id
self.azure_sdk.credential(), self.azure_sdk.subscription_id
)
ip_address = aci_client.container_groups.get(
self.resource_group_name, self.container_group_name
Expand All @@ -51,7 +51,7 @@ def restart(self, target_ip_address: str | None = None) -> None:
# Connect to Azure clients
try:
aci_client = ContainerInstanceManagementClient(
self.azure_sdk.credential, self.azure_sdk.subscription_id
self.azure_sdk.credential(), self.azure_sdk.subscription_id
)
if not target_ip_address:
target_ip_address = self.current_ip_address
Expand Down Expand Up @@ -98,7 +98,7 @@ def run_executable(self, container_name: str, executable_path: str) -> list[str]
"""
# Connect to Azure clients
aci_client = ContainerInstanceManagementClient(
self.azure_sdk.credential, self.azure_sdk.subscription_id
self.azure_sdk.credential(), self.azure_sdk.subscription_id
)

# Run command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def __init__(
),
),
containerinstance.ContainerArgs(
image="ghcr.io/alan-turing-institute/guacamole-user-sync:v0.4.0",
image="ghcr.io/alan-turing-institute/guacamole-user-sync:v0.5.0",
name="guacamole-user-sync"[:63],
environment_variables=[
containerinstance.EnvironmentVariableArgs(
Expand Down

0 comments on commit 17e9ffc

Please sign in to comment.