This commit is contained in:
Andras Bacsai 2022-07-25 13:10:00 +00:00
parent d833f33eb2
commit 899f894e51

View File

@ -734,7 +734,7 @@ export async function getPreviews(request: FastifyRequest<OnlyId>) {
const PRMRSecrets = secrets.filter((secret) => secret.isPRMRSecret);
const application = await prisma.application.findUnique({ where: { id }, include: { destinationDocker: true } })
const { stdout } = await executeDockerCmd({ dockerId: application.destinationDocker.id, command: `docker container ls --filter 'name=${id}-' --format "{{json .}}"` })
if (!stdout) {
if (stdout === '') {
return {
containers: [],
applicationSecrets: [],