Skip to content

Commit

Permalink
prevent exception in eybackup_slave when backups are disabled in an e…
Browse files Browse the repository at this point in the history
…nvironment
  • Loading branch information
tpoland committed Jul 20, 2015
1 parent 45b0d5e commit 3b533b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbooks/eybackup_slave/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

# backups disabled?
if node[:backup_window].to_s == "0"
raise "Backups are disabled for this environment"
Chef::Log.info "Backups are disabled for this environment; skipping eybackup_slave recipe."
return
end

# database is mysql? (EY Cloud already sets up eybackup on the slave for postgres)
Expand Down

0 comments on commit 3b533b9

Please sign in to comment.