Skip to content

Commit

Permalink
Merge pull request #852 from openSUSE/fix_missing_agama_yml
Browse files Browse the repository at this point in the history
fix the latest change when /etc/agama.yaml can be missing
  • Loading branch information
jreidinger authored Nov 7, 2023
2 parents 9b67fbe + 26b91aa commit 6ae6d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/lib/agama/config_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def config_paths
paths.uniq! { |f| File.basename(f) }
# Sort files lexicographic
paths.sort_by! { |f| File.basename(f) }
paths.prepend(default_path)
paths.prepend(default_path) if File.exist?(default_path)

paths
end
Expand Down

0 comments on commit 6ae6d69

Please sign in to comment.