Skip to content

Commit 38da44c

Browse files
committed
Fix arity difference between rails and msfconsole options
MSP-10905
1 parent 04541ac commit 38da44c

File tree

1 file changed

+2
-2
lines changed
  • lib/metasploit/framework/parsed_options

1 file changed

+2
-2
lines changed

lib/metasploit/framework/parsed_options/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def options
7676
user_database_yaml = user_config_root.join('database.yml')
7777

7878
if user_database_yaml.exist?
79-
options.database.config = [user_database_yaml.to_path]
79+
options.database.config = user_database_yaml.to_path
8080
else
81-
options.database.config = ['config/database.yml']
81+
options.database.config = 'config/database.yml'
8282
end
8383

8484
options.database.disable = false

0 commit comments

Comments
 (0)