Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[az confcom acipolicygen] Command raises a sys.exit() after generation of the policy #7683

Open
hprabh opened this issue Jun 5, 2024 · 2 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Connected Kubernetes Service Attention This issue is responsible by Azure service team.

Comments

@hprabh
Copy link

hprabh commented Jun 5, 2024

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

@hprabh hprabh added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 5, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 5, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Service Attention This issue is responsible by Azure service team. label Jun 5, 2024
@SethHollandsworth
Copy link
Contributor

Thanks for your patience. This should be addressed in #8238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Connected Kubernetes Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants