diff --git a/lib/manageiq/appliance_console/database_configuration.rb b/lib/manageiq/appliance_console/database_configuration.rb index 7a88a387..203e59c6 100644 --- a/lib/manageiq/appliance_console/database_configuration.rb +++ b/lib/manageiq/appliance_console/database_configuration.rb @@ -257,7 +257,13 @@ def self.load_current require 'fileutils' FileUtils.cp(DB_YML_TMPL, DB_YML) if File.exist?(DB_YML_TMPL) end - YAML.load_file(DB_YML) + + data = File.read(DB_YML) + if YAML.respond_to?(:safe_load) + YAML.safe_load(data, :aliases => true) + else + YAML.load(data) # rubocop:disable Security/YAMLLoad + end end def validate_encryption_key!