From bf4eb0903604905077c8c0a6590cfd8bd1b1e7c0 Mon Sep 17 00:00:00 2001 From: Komal Date: Mon, 26 Aug 2024 16:12:21 -0700 Subject: [PATCH 1/2] Python test for extra certainty --- examples/py-deployment-settings/__main__.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/examples/py-deployment-settings/__main__.py b/examples/py-deployment-settings/__main__.py index 0741e08d..043bbbc6 100644 --- a/examples/py-deployment-settings/__main__.py +++ b/examples/py-deployment-settings/__main__.py @@ -1,10 +1,20 @@ -"""A Python Pulumi Service Teams program""" - import pulumi -from pulumi_pulumiservice import DeploymentSettings, DeploymentSettingsOperationContextArgs, DeploymentSettingsSourceContextArgs, DeploymentSettingsGitSourceArgs +from pulumi_pulumiservice import ( + AgentPool, + DeploymentSettings, + DeploymentSettingsOperationContextArgs, + DeploymentSettingsSourceContextArgs, + DeploymentSettingsGitSourceArgs, +) config = pulumi.Config() +agent_pool = AgentPool( + "my-agent-pool", + organization_name="service-provider-test-org", + name="my-test-pool", +) + settings = DeploymentSettings( "my-settings", organization="service-provider-test-org", @@ -23,5 +33,7 @@ branch="main", repo_dir="pulumi-programs/simple-resource" ) - ) + ), + # Re-enable when https://github.com/pulumi/pulumi-pulumiservice/issues/378 is fixed + # agent_pool_id=agent_pool.agent_pool_id, ) From ad536a94459bad6eb8b06a30d38c3988ec1e44c1 Mon Sep 17 00:00:00 2001 From: Komal Date: Thu, 29 Aug 2024 10:20:45 -0700 Subject: [PATCH 2/2] Re-enable the agent pool ref --- examples/py-deployment-settings/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/py-deployment-settings/__main__.py b/examples/py-deployment-settings/__main__.py index 043bbbc6..9447e9fc 100644 --- a/examples/py-deployment-settings/__main__.py +++ b/examples/py-deployment-settings/__main__.py @@ -34,6 +34,5 @@ repo_dir="pulumi-programs/simple-resource" ) ), - # Re-enable when https://github.com/pulumi/pulumi-pulumiservice/issues/378 is fixed - # agent_pool_id=agent_pool.agent_pool_id, + agent_pool_id=agent_pool.agent_pool_id, )