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.adapted_dsc_type|ForEach-Object DscResourceInfo
412
+
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.type|ForEach-Object DscResourceInfo
416
413
417
414
# if the resource is found in the cache, get the actual state
418
415
if ($cachedDscResourceInfo) {
@@ -477,7 +474,7 @@ function Invoke-DscOperation {
477
474
}
478
475
else {
479
476
$dsJSON=$DesiredState|ConvertTo-Json-Depth 10
480
-
$errmsg='Can not find type "'+$DesiredState.adapted_dsc_type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
477
+
$errmsg='Can not find type "'+$DesiredState.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.adapted_dsc_type|ForEach-Object DscResourceInfo
312
+
$cachedDscResourceInfo=$dscResourceCache|Where-Object Type -EQ$DesiredState.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.adapted_dsc_type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
454
+
$errmsg='Can not find type "'+$DesiredState.type+'" for resource "'+$dsJSON+'". Please ensure that Get-DscResource returns this resource type.'
0 commit comments