We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ccf0fb commit eb6a7bbCopy full SHA for eb6a7bb
lib/Rex/Config.pm
@@ -1739,18 +1739,7 @@ sub read_config_file {
1739
$config_file ||= _home_dir() . "/.rex/config.yml";
1740
1741
if ( -f $config_file ) {
1742
- my $yaml = do {
1743
- use IO::File;
1744
- my $fh = IO::File->new( $config_file, 'r' );
1745
- join '', $fh->getlines();
1746
- };
1747
- eval { $HOME_CONFIG_YAML = Load($yaml); };
1748
-
1749
- if ($@) {
1750
- print STDERR "Error loading $config_file\n";
1751
- print STDERR "$@\n";
1752
- exit 2;
1753
- }
+ my $HOME_CONFIG_YAML = LoadFile($config_file);
1754
1755
for my $key ( keys %{$HOME_CONFIG} ) {
1756
if ( exists $HOME_CONFIG_YAML->{$key} ) {
0 commit comments