diff --git a/lib/metasploit/framework/parsed_options/base.rb b/lib/metasploit/framework/parsed_options/base.rb index a2ed28c005..e3c8f8365a 100644 --- a/lib/metasploit/framework/parsed_options/base.rb +++ b/lib/metasploit/framework/parsed_options/base.rb @@ -76,9 +76,9 @@ class Metasploit::Framework::ParsedOptions::Base user_database_yaml = user_config_root.join('database.yml') if user_database_yaml.exist? - options.database.config = [user_database_yaml.to_path] + options.database.config = user_database_yaml.to_path else - options.database.config = ['config/database.yml'] + options.database.config = 'config/database.yml' end options.database.disable = false