skip users database host update

pull/13069/head
Alex Martín 7 years ago committed by Alex Martín
parent adc787d3bc
commit fe3290e235

@ -132,6 +132,7 @@ module Carto
end
def update_database_host
return if dry
users.each do |user|
Rollbar.info("Updating database conection for user #{user.username} to #{database_host}")
user.database_host = database_host

@ -530,6 +530,7 @@ module CartoDB
end
def update_database_retries(userid, username, db_host, db_name, retries = 1)
return if @options[:dry]
update_database(userid, username, db_host, db_name)
rescue => e
@logger.error "Error updating database"

Loading…
Cancel
Save