Azure / Azure/azure-devops-cli-extension
repository policy listing by id not working
- Dominant language
- Python
- Stars
- 682
- Forks
- 278
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 3
Description
## Describe the bug
The argument `--repository-id` for `az repos policy` does not work as expected.
**Command Name**
`az repos policy list
Extension Name: azure-devops. Version: 0.17.0.`
**Errors:**
No policy is listed although there are policies applied to that repositry
## To Reproduce:
The two commands below should produce the same output, but only the seconds produces response
```
az repos policy list --project ${project} -o table --repository-id ${id}
az repos policy list --project ${project} -o table | grep ${id}
```
## Expected Behavior
List the policies for the supplied repository id
## Environment Summary
```
Linux-5.4.0-42-generic-x86_64-with-glibc2.29
Python 3.8.2
Shell: bash
azure-cli 2.0.81 *
Extensions:
azure-devops 0.17.0
```
Contributor guide
Assessment
This issue has not been assessed yet.