Skip to content
Snippets Groups Projects
Commit 24e68bff authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

better simulator check (coscine/issues#2072)

parent e1d0be38
No related tags found
1 merge request!1New: New implementation for resource types
Pipeline #719850 passed
......@@ -207,8 +207,11 @@ namespace Coscine.ResourceTypes.RdsWorm
// Should be enough
var retention = long.MaxValue;
// Debug one day
retention = 60 * 60 * 24;
// Set retention to one day for our simulator
if (RdsS3WormResourceTypeConfiguration.Endpoint.Contains("ecs-sim01.itc.rwth-aachen.de"))
{
retention = 60 * 60 * 24;
}
if (options?.ContainsKey("retention") == true && long.TryParse(options["retention"], out var retentionResult))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment