Delete services one-by-one instead of calling 'delete_all', which doesn't exist. (fixes #748)
git-svn-id: file:///home/svn/framework3/trunk@8064 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c62e314ac4
commit
471b1e6ff8
|
@ -615,7 +615,7 @@ class DBManager
|
|||
host = get_host(address)
|
||||
return unless host
|
||||
|
||||
host.services.find(:all, :conditions => { :proto => proto, :port => port}).destroy_all
|
||||
host.services.all(:conditions => {:proto => proto, :port => port}).each { |s| s.destroy }
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue