Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 1882bfa

Browse files
fixing an issue related to adding namespace to global parameters
1 parent 4938fef commit 1882bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSSwagger.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Export-CommandFromSwagger
5656
$null = New-Item -ItemType Directory $outputDirectory -ErrorAction Stop
5757

5858
$namespace = "Microsoft.PowerShell.$moduleName"
59-
$Global:parameters.Add('namespace', $namespace)
59+
$Global:parameters['namespace'] = $namespace
6060

6161
GenerateCsharpCode -swaggerSpecPath $swaggerSpecPath -path $outputDirectory -moduleName $moduleName -nameSpace $namespace
6262
GenerateModuleManifest -path $outputDirectory -moduleName $moduleName -rootModule "$moduleName.psm1"

0 commit comments

Comments
 (0)