Skip to content

mgadm should handle API errors gracefully #362

Open
@rcgoodfellow

Description

@rcgoodfellow

There are several places like this in the mgadm code where we unwrap API calls like this.

let response = c.read_router(asn).await.unwrap();

This results in a crash and corefile when the API returns an error, even for something like a 400 error. While mgadm is just a local debugging tool, this is not ideal as it leaves core files around which show up in rack health checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugmgdMaghemite daemon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions