Pull out a constant
This commit is contained in:
@@ -472,6 +472,7 @@ class AWSCloudProvider(CloudProviderInterface):
|
|||||||
"description": "View billing information.",
|
"description": "View billing information.",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
MAX_CREATE_ACCOUNT_ATTEMPTS = 10
|
||||||
|
|
||||||
def __init__(self, config, boto3=None):
|
def __init__(self, config, boto3=None):
|
||||||
self.config = config
|
self.config = config
|
||||||
@@ -516,7 +517,7 @@ class AWSCloudProvider(CloudProviderInterface):
|
|||||||
"AccountCreated": {
|
"AccountCreated": {
|
||||||
"operation": "DescribeCreateAccountStatus",
|
"operation": "DescribeCreateAccountStatus",
|
||||||
"delay": 20,
|
"delay": 20,
|
||||||
"maxAttempts": 10,
|
"maxAttempts": self.MAX_CREATE_ACCOUNT_ATTEMPTS,
|
||||||
"acceptors": [
|
"acceptors": [
|
||||||
{
|
{
|
||||||
"matcher": "path",
|
"matcher": "path",
|
||||||
|
Reference in New Issue
Block a user