diff --git a/contrib/plugins/murano_heat-translator_plugin/plugin/csar_package.py b/contrib/plugins/murano_heat-translator_plugin/plugin/csar_package.py index 5ca54649..ff791dc1 100755 --- a/contrib/plugins/murano_heat-translator_plugin/plugin/csar_package.py +++ b/contrib/plugins/murano_heat-translator_plugin/plugin/csar_package.py @@ -355,8 +355,11 @@ class CSARPackage(package_base.PackageBase): ] destroy = [ + {YAQL('$environment'): YAQL( + "$.find('io.murano.Environment').require()" + )}, {YAQL('$stack'): YAQL( - "new('io.murano.system.HeatStack', " + "new('io.murano.system.HeatStack', $environment, " "name => $.getAttr(generatedHeatStackName))")}, YAQL('$stack.delete()') diff --git a/murano/packages/hot_package.py b/murano/packages/hot_package.py index f0ce0476..93830b7b 100644 --- a/murano/packages/hot_package.py +++ b/murano/packages/hot_package.py @@ -331,10 +331,12 @@ class HotPackage(package_base.PackageBase): ] destroy = [ + {YAQL('$environment'): YAQL( + "$.find('io.murano.Environment').require()" + )}, {YAQL('$stack'): YAQL( - "new('io.murano.system.HeatStack', " + "new('io.murano.system.HeatStack', $environment, " "name => $.getAttr(generatedHeatStackName))")}, - YAQL('$stack.delete()') ]