Skip to content

create_unit should check fleet's response code instead of executing a get_unit call #5

@simonvanderveldt

Description

@simonvanderveldt

Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404)

Since fleet already returns a response code when handling units create_unit should simply check this response code and not call get_unit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions