When the SuccessRequires is 0 of int type, the check does not as expected, and returns "1" for the CloudFormation. When the "0" of str type is used, it works fine. Because if 0 is false, while if "0" is true.
As a result, the formations with 0 expected instances in start fail to create when in the AWS, because it expects at least 1:
This fix makes the check more specific, and the only assumed "absent" value could be None here (despite this case is not mentioned in the tests at all, and not present anywhere in the code).
Therefore, the 0 int value goes to the actual check for int type, and is now handled properly.
When the
SuccessRequires
is 0 of int type, the check does not as expected, and returns"1"
for the CloudFormation. When the"0"
of str type is used, it works fine. Becauseif 0
is false, whileif "0"
is true.As a result, the formations with 0 expected instances in start fail to create when in the AWS, because it expects at least 1:
This fix makes the check more specific, and the only assumed "absent" value could be
None
here (despite this case is not mentioned in the tests at all, and not present anywhere in the code).Therefore, the
0
int value goes to the actual check forint
type, and is now handled properly.