Azure / Azure/azure-cli-extensions

Returning a list as opposed to a dict while authoring an extension

Open
#6,001 4 comments 0 reactions 1 assignee Claimed by @jsntcy View on GitHub
Azure CLI Team
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)

### Related command

While authoring a new extension I am running into this issue here :
![image](https://user-images.githubusercontent.com/111079168/225305796-90ea407c-e6e0-4669-91c7-92f2a72efeae.png)

### Extension name (the extension in question)
Hybrid-Compute

My extension returns a list, however the expected value here is a dictionary. The swagger is specification here (https://github.com/Azure/azure-rest-api-specs/blob/main/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2022-11-10/HybridCompute.json) is also specified for a list. How do I resolve this issue?

-----

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.