File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
powershell-adapter/psDscAdapter Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function Invoke-DscCacheRefresh {
7474 $cache = Get-Content - Raw $cacheFilePath | ConvertFrom-Json
7575 if ($cache.CacheSchemaVersion -ne $script :CurrentCacheSchemaVersion ) {
7676 $refreshCache = $true
77- " Incompartible version of cache in file '" + $cache.CacheSchemaVersion + " ' (expected '" + $script :CurrentCacheSchemaVersion + " ')" | Write-DscTrace
77+ " Incompatible version of cache in file '" + $cache.CacheSchemaVersion + " ' (expected '" + $script :CurrentCacheSchemaVersion + " ')" | Write-DscTrace
7878 }
7979 else {
8080 $dscResourceCacheEntries = $cache.ResourceCache
@@ -281,14 +281,6 @@ function Get-DscResourceObject {
281281 $inputObj = $jsonInput | ConvertFrom-Json
282282 $desiredState = [System.Collections.Generic.List [Object ]]::new()
283283
284- # match adapter to version of powershell
285- if ($PSVersionTable.PSVersion.Major -le 5 ) {
286- $adapterName = ' Microsoft.Windows/WindowsPowerShell'
287- }
288- else {
289- $adapterName = ' Microsoft.DSC/PowerShell'
290- }
291-
292284 # change the type from pscustomobject to dscResourceObject
293285 $inputObj.resources | ForEach-Object - Process {
294286 $desiredState += [dscResourceObject ]@ {
You can’t perform that action at this time.
0 commit comments