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