Filter deployments before writing attributes to CSV