From ccb187220e9141230619becfb598fe390f7e4673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos?= Date: Fri, 18 Jun 2021 15:46:17 +0100 Subject: [PATCH] Fix: Update container group creation operation Fixes the container group creation operation by invoking the method `begin_create_or_update ` instead of `begin_create_or_update ` which must have been deprecated at some point. --- src/aci_docs_sample.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aci_docs_sample.py b/src/aci_docs_sample.py index 4aa4c13..9a85e7d 100644 --- a/src/aci_docs_sample.py +++ b/src/aci_docs_sample.py @@ -188,7 +188,7 @@ def create_container_group_multi(aci_client, resource_group, ip_address=group_ip_address) # Create the container group - aci_client.container_groups.create_or_update(resource_group.name, + aci_client.container_groups.begin_create_or_update(resource_group.name, container_group_name, group) # Get the created container group @@ -249,7 +249,7 @@ def run_task_based_container(aci_client, resource_group, container_group_name, restart_policy=ContainerGroupRestartPolicy.never) # Create the container group - result = aci_client.container_groups.create_or_update(resource_group.name, + result = aci_client.container_groups.begin_create_or_update(resource_group.name, container_group_name, group)