Commit 649a1fcf authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix incomming email check task to use same patch we did in mail_room

parent 9d7615d0
...@@ -724,8 +724,11 @@ namespace :gitlab do ...@@ -724,8 +724,11 @@ namespace :gitlab do
def check_imap_authentication def check_imap_authentication
print "IMAP server credentials are correct? ... " print "IMAP server credentials are correct? ... "
config_path = Rails.root.join('config', 'mail_room.yml') config_path = Rails.root.join('config', 'mail_room.yml').to_s
config_file = YAML.load(ERB.new(File.read(config_path)).result) erb = ERB.new(File.read(config_path))
erb.filename = config_path
config_file = YAML.load(erb.result)
config = config_file[:mailboxes].first config = config_file[:mailboxes].first
if config if config
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment