HumanCellAtlas / fusillade

Federated User Identity Login & Access Decision Engine
https://fusillade.readthedocs.io/
Other
8 stars 1 forks source link

Error with get-v1-resource #382

Closed amarjandu closed 4 years ago

amarjandu commented 4 years ago

Error with get-v1-resource

hca auth get-v1-resource

Expected behavior, cli outputs all resources available to the user.

Actual output

hca auth get-v1-resource
usage: hca auth get-v1-resource [-h] --resource-type-name RESOURCE_TYPE_NAME
                                [--next-token NEXT_TOKEN]
                                [--per-page PER_PAGE] [--no-paginate]
hca auth get-v1-resource: error: the following arguments are required: --resource-type-name

it looks like this is due to a naming collision on the endpoint, perhaps changing the endpoint to /v1/resources

Screen Shot 2019-12-19 at 3 52 18 PM

I believe due to how the CLI is using the swagger.json this was the correct location to put this, if not i can move it to the dcp-cli repo.

amarjandu commented 4 years ago

This issue also occurs for get-v1-resource-policy when attempting to list out all available policies for a given resource