From 33781eafbb2cd80d8c3ef052d5c02321230f8a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miles=20St=C3=B6tzner?= Date: Fri, 11 Aug 2023 22:38:38 +0200 Subject: [PATCH] minor --- docs/docs/contributing/notes.md | 2 +- src/controller/instances/continue.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/docs/contributing/notes.md b/docs/docs/contributing/notes.md index 6de591f127..faf32d7d87 100644 --- a/docs/docs/contributing/notes.md +++ b/docs/docs/contributing/notes.md @@ -187,9 +187,9 @@ All environment variables are prefixed by `OPENTOSCA_VINTNER_`. When the following environment variables are read, they are tried to be parsed as JSON. If they can not be parsed, they are treated as string. +- `OPENTOSCA_VINTNER_VARIABILITY_PRESETS` - `OPENTOSCA_VINTNER_VARIABILITY_INPUT_${KEY}` - `OPENTOSCA_VINTNER_DEPLOYMENT_INPUT_${KEY}` -- `OPENTOSCA_VINTNER_VARIABILITY_PRESETS` These environment variables should be used with caution. diff --git a/src/controller/instances/continue.ts b/src/controller/instances/continue.ts index d6d4e533d3..1248573f25 100644 --- a/src/controller/instances/continue.ts +++ b/src/controller/instances/continue.ts @@ -1,16 +1,14 @@ import Plugins from '#plugins' import {Instance} from '#repository/instances' -import * as utils from '#utils' import lock from '#utils/lock' -export type InstancesContinueOptions = {instance: string; inputs?: string; verbose?: boolean} +export type InstancesContinueOptions = {instance: string; verbose?: boolean} export default async function (options: InstancesContinueOptions) { const instance = new Instance(options.instance) await lock.try(instance.getLockKey(), async () => { if (!instance.exists()) throw new Error(`Instance "${instance.getName()}" does not exist`) - instance.setServiceInputs(utils.now(), options.inputs) await Plugins.getOrchestrator().continue(instance, {verbose: options.verbose}) }) }