diff --git a/app/models/deploy_distributed_press.rb b/app/models/deploy_distributed_press.rb index 3b70b8f1..367dbfb6 100644 --- a/app/models/deploy_distributed_press.rb +++ b/app/models/deploy_distributed_press.rb @@ -169,9 +169,9 @@ class DeployDistributedPress < Deploy def delete_njalla_records! %w[a ns cname].each do |type| - next unless (id = remote_info.dig('njalla', type, 'id')) + next if (id = remote_info.dig('njalla', type, 'id')).blank? - njalla.remove_record(id: id) + njalla.remove_record(id: id.to_i) end end