Skip to content

Commit

Permalink
Improve settings load from YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfvb committed Jul 17, 2024
1 parent 1a117dd commit 127129f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AptecoPSFramework/public/settings/import-settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Function Import-Settings {
Switch ( $pathExtension ) {

{ $PSItem -in @( ".yml", ".yaml" ) } {
$settings = Get-Content -Path $absolutePath -Encoding utf8 -Raw | ConvertFrom-Yaml | ConvertTo-Yaml -JsonCompatible | ConvertFrom-Json
$settings = [PSCustomObject]( Get-Content -Path $absolutePath -Encoding utf8 -Raw | ConvertFrom-Yaml -Ordered )
}

default {
Expand Down

0 comments on commit 127129f

Please sign in to comment.