cloud-radar 0.12.1__py3-none-any.whl → 0.12.1a1__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,21 +830,17 @@ 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
-
835
833
  param_def = template.template["Parameters"][var_name]
836
- param_type = param_def.get("Type", "")
837
- param_value = param_def["Value"]
838
-
839
- if param_type.startswith("AWS::SSM::Parameter::Value<"):
834
+ if "Type" in param_def and param_def["Type"].startswith(
835
+ "AWS::SSM::Parameter::Value<"
836
+ ):
840
837
  # This is an SSM parameter value, look it up from our dynamic references
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(",")
838
+ return template._get_dynamic_reference_value(
839
+ "ssm", template.template["Parameters"][var_name]["Value"]
840
+ )
845
841
 
846
842
  # If we get this far, regular parameter value to lookup & return
847
- return param_value
843
+ return template.template["Parameters"][var_name]["Value"]
848
844
 
849
845
  if var_name in template.template["Resources"]:
850
846
  return var_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-radar
3
- Version: 0.12.1
3
+ Version: 0.12.1a1
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=k1i12FDChgLwGsG-3q9kdYbuEOgnMEs0qPynp-YcZAM,28494
13
+ cloud_radar/cf/unit/functions.py,sha256=KPPPNLrXzYMi5dtsXkvi0RvaaeAnvBC_2MhqHPs1lHo,28329
14
14
  cloud_radar/cf/unit/test__template.py,sha256=jVPMJTn6Q0sSZ8BjRGyutuR9-NjdHdwDTVsd2kvjQbs,1491
15
- cloud_radar-0.12.1.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- cloud_radar-0.12.1.dist-info/METADATA,sha256=vwvpMBogg8baN7ninA1rMU_jFP7lpotb_xbhkYY9tu8,15527
17
- cloud_radar-0.12.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
- cloud_radar-0.12.1.dist-info/RECORD,,
15
+ cloud_radar-0.12.1a1.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ cloud_radar-0.12.1a1.dist-info/METADATA,sha256=yILTez8S8Fz0kGkwWcDgu-2n4dxFQXb8HY6XgU0gIFI,15529
17
+ cloud_radar-0.12.1a1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
+ cloud_radar-0.12.1a1.dist-info/RECORD,,