Skip to content

Commit

Permalink
use lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed May 31, 2024
1 parent 2d6bb02 commit 5070d08
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/sc_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,13 @@ def destroy(vendor, pulumi_opts, resource_opts):
resource_f = getattr(resources, f"{resources.PREFIX}{vendor}")
pulumi_opts["stack_name"] = get_stack_name(vendor, resource_f, resource_opts)

def pulumi_program():
return lambda: None

stack = pulumi_stack(pulumi_program, **pulumi_opts)
stack = pulumi_stack(lambda: None, **pulumi_opts)
stack.up(on_output=print)


def cancel(vendor, pulumi_opts, resource_opts):
resource_f = getattr(resources, f"{resources.PREFIX}{vendor}")
pulumi_opts["stack_name"] = get_stack_name(vendor, resource_f, resource_opts)

def pulumi_program():
return lambda: None

stack = pulumi_stack(pulumi_program, **pulumi_opts)
stack = pulumi_stack(lambda: None, **pulumi_opts)
stack.cancel()

0 comments on commit 5070d08

Please sign in to comment.