You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# get details from cache about the DSC resource, if it exists
415
-
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.type|ForEach-Object DscResourceInfo
415
+
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.adapted_dsc_type|ForEach-Object DscResourceInfo
416
416
417
417
# if the resource is found in the cache, get the actual state
418
418
if ($cachedDscResourceInfo) {
@@ -477,7 +477,7 @@ function Invoke-DscOperation {
477
477
}
478
478
else {
479
479
$dsJSON=$DesiredState|ConvertTo-Json-Depth 10
480
-
$errmsg='Can not find type "'+$DesiredState.type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
480
+
$errmsg='Can not find type "'+$DesiredState.adapted_dsc_type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
# get details from cache about the DSC resource, if it exists
312
-
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.type|ForEach-Object DscResourceInfo
312
+
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.adapted_dsc_type|ForEach-Object DscResourceInfo
313
313
314
314
# if the resource is found in the cache, get the actual state
315
315
if ($cachedDscResourceInfo) {
@@ -451,7 +451,7 @@ function Invoke-DscOperation {
451
451
}
452
452
else {
453
453
$dsJSON=$DesiredState|ConvertTo-Json-Depth 10
454
-
$errmsg='Can not find type "'+$DesiredState.type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
454
+
$errmsg='Can not find type "'+$DesiredState.adapted_dsc_type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
0 commit comments