Azure / Azure/azure-cli-extensions
[az confcom acipolicygen] Command raises a sys.exit() after generation of the policy
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### Describe the bug
The az confcom acipolicygen command raises a sys.exit(0) after the generation of the policy. Using scripts to invoke the command causes the process to exit, unless launched in a subprocess.
### Related command
az confcom acipolicygen
### Errors
N/A
### Issue script & Debug output
N/A
### Expected behavior
THe process should not exit after the command has run successfully. The command should just return the value instead of calling sys.exit()
### Environment Summary
azure-cli 2.59.0 *
core 2.59.0 *
telemetry 1.1.0
Extensions:
aks-preview 0.5.146
arcappliance 0.2.32
azure-devops 0.26.0
cleanroom 0.0.1
confcom 0.5.0a1
connectedk8s 1.3.20
k8s-extension 1.4.2
managedccfs 0.2.0
providerhub 0.2.0
Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/az/bin/python3'
Extensions directory '/home/hprabh/.azure/cliextensions'
Development extension sources:
/home/hprabh/code/azure-cleanroom
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.