Skip to content

Commit 45208a0

Browse files
Merge pull request #3306 from Azure/FixBrokenGeneration
Fix broken generation
2 parents 322e6da + a3f3dfa commit 45208a0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

generator/autogenlist.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { postProcessor as networkPostProcessor } from './processors/Microsoft.Ne
1616
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
1717
import { postProcessor as resourcesPostProcessor } from './processors/Microsoft.Resources';
1818
import { postProcessor as serviceFabricPostProcessor } from './processors/Microsoft.ServiceFabric';
19+
import { postProcessor as awsConnectorPostProcessor } from './processors/Microsoft.AwsConnector';
1920
import { lowerCaseEquals } from './utils';
2021
import { detectProviderNamespaces } from './generate';
2122

@@ -168,6 +169,11 @@ const autoGenList: AutoGenConfig[] = [
168169
basePath: 'automation/resource-manager',
169170
namespace: 'Microsoft.Automation',
170171
},
172+
{
173+
basePath: 'awsConnector/resource-manager',
174+
namespace: 'Microsoft.AwsConnector',
175+
postProcessor: awsConnectorPostProcessor
176+
},
171177
{
172178
basePath: 'azurearcdata/resource-manager',
173179
namespace: 'Microsoft.AzureArcData',

generator/utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ export function executeCmd(cwd: string, cmd: string, args: string[]) : Promise<n
1414
const child = spawn(cmd, args, {
1515
cwd: cwd,
1616
windowsHide: true,
17+
env: {
18+
...process.env,
19+
// needed to workaround dotnet globalization issues in autorest .NET plugins
20+
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: '1',
21+
},
1722
});
1823

1924
child.stdout.on('data', data => process.stdout.write(colors.grey(data.toString())));

0 commit comments

Comments
 (0)