Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Aug 11, 2023
1 parent b141544 commit 33781ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/contributing/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 1 addition & 3 deletions src/controller/instances/continue.ts
Original file line number Diff line number Diff line change
@@ -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})
})
}

0 comments on commit 33781ea

Please sign in to comment.