Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nmussy committed Apr 8, 2024
1 parent d7c3a7c commit 55af1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ new IntegTest(app, 'windows-machine-image-integ-test', {
enableLookups: true,
});

function getMachineImage (version: Version) {
function getMachineImage(version: Version) {
return Object.values(ec2.WindowsVersion).includes(version as ec2.WindowsVersion) ?
ec2.MachineImage.latestWindows(version as ec2.WindowsVersion) :
ec2.MachineImage.specificWindows(version as ec2.WindowsSpecificVersion);
}

function generateStackName (prefix: string, version: string) {
function generateStackName(prefix: string, version: string) {
return `integ-ec2-windows-${prefix}-${version.replace(/[_.]/g, '-')}`;
}
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-ec2/lib/windows-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2480,4 +2480,4 @@ export enum WindowsSpecificVersion {
/** 2024.03.13 version of {@link WindowsVersion.WINDOWS_SERVER_2022_TURKISH_FULL_BASE} */
WINDOWS_SERVER_2022_TURKISH_FULL_BASE_2024_03_13 = 'Windows_Server-2022-Turkish-Full-Base-2024.03.13',
/** 2022 - End */
}
}

0 comments on commit 55af1c9

Please sign in to comment.