Skip to content

Commit f441801

Browse files
author
Clark Perkins
committed
Fix for blueprint creation - it shouldn't fail if the user passes an sls_path
1 parent 7d69f39 commit f441801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackdio/client/blueprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def create_blueprint(self, blueprint, provider="ec2"):
2323
host["cloud_profile"] = self.get_profile_id(host["cloud_profile"], title=True)
2424

2525
for component in host["formula_components"]:
26-
if isinstance(component["id"], (tuple, list)):
26+
if not component.get("sls_path") and isinstance(component["id"], (tuple, list)):
2727
formula_id = self.get_formula_id(component["id"][0])
2828

2929
component["id"] = self.get_component_id(

0 commit comments

Comments
 (0)