Skip to content

Commit a13082c

Browse files
committed
Remove elseif
1 parent 6ca0a7e commit a13082c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

adapters/powershell/psDscAdapter/psDscAdapter.psm1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,6 @@ function Invoke-DscOperation {
434434
}
435435
$dscResourceInstance.$($_.Name) = [System.Management.Automation.PSCredential]::new($_.Value.Username, (ConvertTo-SecureString -AsPlainText $_.Value.Password -Force))
436436
}
437-
elseif ($validateProperty -and $validateProperty.PropertyType -like '*SecureString') {
438-
439-
$dscResourceInstance.$($_.Name) = ConvertTo-SecureString -AsPlainText $_.Value -Force
440-
}
441437
else {
442438
$dscResourceInstance.$($_.Name) = $_.Value.psobject.properties | ForEach-Object -Begin { $propertyHash = @{} } -Process { $propertyHash[$_.Name] = $_.Value } -End { $propertyHash }
443439
}

0 commit comments

Comments
 (0)