Skip to content

Specifying a --json-filter output schema without -ojson crashes the cli #69

@4censord

Description

@4censord

This works as expected:

$ cloudscale -ojson \
    custom-image list \
    --json '[].{"uuid": uuid, "name": name}'
[
    {
        "name": "image",
        "uuid": "[...}"
    }, ...
]

while this:

$ cloudscale \
    custom-image list \
    --json '[].{"uuid": uuid, "name": name}'
'NoneType' object has no attribute 'items'

crashes with an error

Nothing critical, but catching this and exiting with an error message would be nice.

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