Skip to content

Commit 9acb627

Browse files
authored
Merge pull request #135 from RexChenjq/patch-1
fix: Replace hard-coded platform attribute with previously-defined value in ImagePipelineProps allowing Windows images to be built with powershell component
2 parents 0e26c9e + 88e18a7 commit 9acb627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class ImagePipeline extends Construct {
234234
props.components.forEach((component) => {
235235
let newComponent = new imagebuilder.CfnComponent(this, component.name, {
236236
name: component.name,
237-
platform: 'Linux',
237+
platform: props.platform ? props.platform : 'Linux',
238238
version: component.version,
239239
data: readFileSync(component.document).toString(),
240240
});

0 commit comments

Comments
 (0)