mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(servicecatalog): use injected clock for plan execution record (#7122)
This commit is contained in:
1 parent
d173d65eb4
commit
87a733edea
2 files changed
+20
-4
No files matched your search
+1
-1
@@ -1152,7 +1152,7 @@ public class ServiceCatalogService implements PassedRoleLookup {
|
||||
ObjectNode record = objectMapper.createObjectNode();
|
||||
record.put("RecordId", "rec-" + UUID.randomUUID().toString().replace("-", "").substring(0, 16));
|
||||
record.put("Status", "SUCCEEDED");
|
||||
record.put("CreatedTime", System.currentTimeMillis() / 1000.0);
|
||||
record.put("CreatedTime", Instant.now(clock).toEpochMilli() / 1000.0);
|
||||
return record;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user