Browse Source

Fix arity difference between rails and msfconsole options

MSP-10905
Luke Imhoff 5 years ago
parent
commit
38da44c26b
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/metasploit/framework/parsed_options/base.rb

+ 2
- 2
lib/metasploit/framework/parsed_options/base.rb View File

@@ -76,9 +76,9 @@ class Metasploit::Framework::ParsedOptions::Base
76 76
       user_database_yaml = user_config_root.join('database.yml')
77 77
 
78 78
       if user_database_yaml.exist?
79
-        options.database.config = [user_database_yaml.to_path]
79
+        options.database.config = user_database_yaml.to_path
80 80
       else
81
-        options.database.config = ['config/database.yml']
81
+        options.database.config = 'config/database.yml'
82 82
       end
83 83
 
84 84
       options.database.disable = false

Loading…
Cancel
Save