Skip to content

Commit

Permalink
Fix bug caused by matrix-org#888
Browse files Browse the repository at this point in the history
  • Loading branch information
valkum committed Aug 26, 2020
1 parent ed60d34 commit 26a7542
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/SyTest/Homeserver/Conduit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ sub _get_dbconfig

my ( %db_config );
if( -f $db_config_abs_path ) {
%db_config = %{ YAML::LoadFile( $db_config_abs_path ) };
%db_config = %{ YAML::XS::LoadFile( $db_config_abs_path ) };
}
else {
YAML::DumpFile( $db_config_abs_path, \%defaults );
local $YAML::XS::Boolean = "JSON::PP";
YAML::XS::DumpFile( $db_config_abs_path, \%defaults );
%db_config = %defaults;
}

Expand Down

0 comments on commit 26a7542

Please sign in to comment.