From 3b16d05a02be831fec0d9afac726bc56efe7cd59 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Tue, 6 Aug 2019 14:17:36 -0700 Subject: [PATCH] Don't check placement group capacity if NONE or DYNAMIC Signed-off-by: Sean Smith --- cli/pcluster/cfnconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/pcluster/cfnconfig.py b/cli/pcluster/cfnconfig.py index 7bc2774427..d93d381884 100644 --- a/cli/pcluster/cfnconfig.py +++ b/cli/pcluster/cfnconfig.py @@ -386,7 +386,7 @@ def __check_account_capacity(self): # noqa: C901 ImageId=test_ami_id, SubnetId=subnet_id, Placement={"GroupName": self.parameters.get("PlacementGroup")} - if self.parameters.get("PlacementGroup") + if self.parameters.get("PlacementGroup") not in [None, "NONE", "DYNAMIC"] else {}, DryRun=True, )