Skip to content

Commit

Permalink
Don't copy default directive templates on clone
Browse files Browse the repository at this point in the history
  • Loading branch information
AjBreidenbach committed Feb 9, 2024
1 parent 5d2bbcc commit bb2aa73
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ const actions = {

for(const template of Object.values(deploymentObj.ResourceTemplate)) {
const type = sourceDeploymentDict.ResourceType[template.type]
if(template.directives?.includes('default')) {
delete deploymentObj.ResourceTemplate[template.name]
continue
}
if(type._sourceinfo) {
template._sourceinfo = type._sourceinfo // not bothering to clone here
}
Expand Down

0 comments on commit bb2aa73

Please sign in to comment.