Skip to content

Make create idempotent #50

Description

@tas50

If create runs while state already has a server_id, it deploys a second VM and overwrites the first one in state. The first is then orphaned, still running and no longer tracked.

Guarding on state[:server_id] and returning early would fix it.

Prior art: #32 does this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions