don't check the dns on create if there already is a status

This commit is contained in:
Adam Cooke
2017-05-08 16:38:29 +01:00
parent 2bde75720c
commit f023ff0bc1
+1 -1
View File
@@ -33,7 +33,7 @@ class TrackDomain < ApplicationRecord
scope :ok, -> { where(:dns_status => 'OK')}
after_create :check_dns
after_create :check_dns, :unless => :dns_status
after_create :create_ssl_certificate_if_missing
after_destroy :delete_ssl_certificate_when_not_in_use