File tree 1 file changed +1
-9
lines changed
powershell-adapter/psDscAdapter
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function Invoke-DscCacheRefresh {
74
74
$cache = Get-Content - Raw $cacheFilePath | ConvertFrom-Json
75
75
if ($cache.CacheSchemaVersion -ne $script :CurrentCacheSchemaVersion ) {
76
76
$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
78
78
}
79
79
else {
80
80
$dscResourceCacheEntries = $cache.ResourceCache
@@ -281,14 +281,6 @@ function Get-DscResourceObject {
281
281
$inputObj = $jsonInput | ConvertFrom-Json
282
282
$desiredState = [System.Collections.Generic.List [Object ]]::new()
283
283
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
-
292
284
# change the type from pscustomobject to dscResourceObject
293
285
$inputObj.resources | ForEach-Object - Process {
294
286
$desiredState += [dscResourceObject ]@ {
You can’t perform that action at this time.
0 commit comments