We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6e619 commit 3a31a0dCopy full SHA for 3a31a0d
.vscode/analyzersettings.psd1
@@ -33,7 +33,7 @@
33
'PSUseApprovedVerbs'
34
'PSUseCmdletCorrectly'
35
'PSUseOutputTypeCorrectly'
36
- #'PSAvoidGlobalVars'
+ 'PSAvoidGlobalVars'
37
'PSAvoidUsingConvertToSecureStringWithPlainText'
38
'PSAvoidUsingPlainTextForPassword'
39
'PSAvoidUsingUsernameAndPasswordParams'
source/Classes/020.SqlRSSetup.ps1
@@ -506,7 +506,7 @@ class SqlRSSetup : ResourceBase
506
#>
507
if ($this.ForceRestart -or ($exitCode -eq 3010 -and -not $this.SuppressRestart))
508
{
509
- $global:DSCMachineStatus = 1
+ Set-Variable -Name 'DSCMachineStatus' -Value 1 -Scope 'Global'
510
}
511
512
0 commit comments