From 10aa1c9bff51095c706d1458dd24a42994b8e3c6 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Wed, 2 Oct 2019 11:36:36 -0400 Subject: [PATCH] Pull out a constant --- atst/domain/csp/cloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atst/domain/csp/cloud.py b/atst/domain/csp/cloud.py index 88a16400..06b9b430 100644 --- a/atst/domain/csp/cloud.py +++ b/atst/domain/csp/cloud.py @@ -472,6 +472,7 @@ class AWSCloudProvider(CloudProviderInterface): "description": "View billing information.", } ] + MAX_CREATE_ACCOUNT_ATTEMPTS = 10 def __init__(self, config, boto3=None): self.config = config @@ -516,7 +517,7 @@ class AWSCloudProvider(CloudProviderInterface): "AccountCreated": { "operation": "DescribeCreateAccountStatus", "delay": 20, - "maxAttempts": 10, + "maxAttempts": self.MAX_CREATE_ACCOUNT_ATTEMPTS, "acceptors": [ { "matcher": "path",