Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 431901a

Browse files
committed
Merge branch 'jdc0589-autoscaling-group-findinref-validation'
2 parents 62b1605 + 2d0cd6d commit 431901a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

troposphere/autoscaling.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# See LICENSE file for full license.
55

6-
from . import AWSHelperFn, AWSObject, AWSProperty, Ref
6+
from . import AWSHelperFn, AWSObject, AWSProperty, Ref, FindInMap
77
from .validators import boolean, integer
88
from . import cloudformation
99

@@ -132,13 +132,13 @@ def validate(self):
132132
if 'AutoScalingRollingUpdate' in update_policy.properties:
133133
rolling_update = update_policy.AutoScalingRollingUpdate
134134

135-
isMinRef = isinstance(
135+
isMinNoCheck = isinstance(
136136
rolling_update.MinInstancesInService,
137-
Ref
137+
(FindInMap, Ref)
138138
)
139-
isMaxRef = isinstance(self.MaxSize, Ref)
139+
isMaxNoCheck = isinstance(self.MaxSize, (FindInMap, Ref))
140140

141-
if not (isMinRef or isMaxRef):
141+
if not (isMinNoCheck or isMaxNoCheck):
142142
maxCount = int(self.MaxSize)
143143
minCount = int(rolling_update.MinInstancesInService)
144144

0 commit comments

Comments
 (0)