Commit cb0c29e4 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'backup_force_helper' into 'master'

Use to_boolean helper for backup force env

See merge request gitlab-org/gitlab!85000
parents 1a78d2ef d9d47efc
...@@ -201,7 +201,7 @@ module Backup ...@@ -201,7 +201,7 @@ module Backup
end end
def build_db_task def build_db_task
force = ENV['force'] == 'yes' force = Gitlab::Utils.to_boolean(ENV['force'], default: false)
Database.new(progress, force: force) Database.new(progress, force: force)
end end
......
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