cloud-radar 0.12.1a26__py3-none-any.whl → 0.12.1a27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -830,17 +830,21 @@ def ref(template: "Template", var_name: str) -> Any:
830
830
 
831
831
  if "Parameters" in template.template:
832
832
  if var_name in template.template["Parameters"]:
833
+ # This is a reference to a parameter
834
+
833
835
  param_def = template.template["Parameters"][var_name]
834
- if "Type" in param_def and param_def["Type"].startswith(
835
- "AWS::SSM::Parameter::Value<"
836
- ):
836
+ param_type = param_def.get("Type", "")
837
+ param_value = param_def["Value"]
838
+
839
+ if param_type.startswith("AWS::SSM::Parameter::Value<"):
837
840
  # This is an SSM parameter value, look it up from our dynamic references
838
- return template._get_dynamic_reference_value(
839
- "ssm", template.template["Parameters"][var_name]["Value"]
840
- )
841
+ return template._get_dynamic_reference_value("ssm", param_value)
842
+ if param_type == "CommaDelimitedList" or param_type.startswith("List<"):
843
+ # Return the value split into a list of strings
844
+ return param_value.split(",")
841
845
 
842
846
  # If we get this far, regular parameter value to lookup & return
843
- return template.template["Parameters"][var_name]["Value"]
847
+ return param_value
844
848
 
845
849
  if var_name in template.template["Resources"]:
846
850
  return var_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-radar
3
- Version: 0.12.1a26
3
+ Version: 0.12.1a27
4
4
  Summary: Run functional tests on cloudformation stacks.
5
5
  Home-page: https://github.com/DontShaveTheYak/cloud-radar
6
6
  License: Apache-2.0
@@ -10,9 +10,9 @@ cloud_radar/cf/unit/_parameter.py,sha256=AdPIqc2ggSW1VR0USF30zjphX3z1HHbGKQt8n-K
10
10
  cloud_radar/cf/unit/_resource.py,sha256=dWaR-5s6ea5mIu6Dhf1hY31Wd4WLHbHsbyxnu2Tz6QI,8512
11
11
  cloud_radar/cf/unit/_stack.py,sha256=_S0L9O7Lw-QAJDKubClp2b6UYtYfyzg272_7WQkUdo8,5785
12
12
  cloud_radar/cf/unit/_template.py,sha256=u1r1RkUPI0t8SGolWEjb3doavFwUQRaE0wOKCi_ijiI,32242
13
- cloud_radar/cf/unit/functions.py,sha256=KPPPNLrXzYMi5dtsXkvi0RvaaeAnvBC_2MhqHPs1lHo,28329
13
+ cloud_radar/cf/unit/functions.py,sha256=k1i12FDChgLwGsG-3q9kdYbuEOgnMEs0qPynp-YcZAM,28494
14
14
  cloud_radar/cf/unit/test__template.py,sha256=jVPMJTn6Q0sSZ8BjRGyutuR9-NjdHdwDTVsd2kvjQbs,1491
15
- cloud_radar-0.12.1a26.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- cloud_radar-0.12.1a26.dist-info/METADATA,sha256=g0bH9WKACg8palwm1cePTQUboDQiFIhcX5YpcZKt0Ak,15530
17
- cloud_radar-0.12.1a26.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
- cloud_radar-0.12.1a26.dist-info/RECORD,,
15
+ cloud_radar-0.12.1a27.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ cloud_radar-0.12.1a27.dist-info/METADATA,sha256=jTfR1v3BgW9AT8-MlVejHrOYbGYRKgrvIQm37HHVSwc,15530
17
+ cloud_radar-0.12.1a27.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
+ cloud_radar-0.12.1a27.dist-info/RECORD,,