fix the return values for 'list' command, allows output to be transfo…#2
Merged
cegraybl merged 1 commit intoAzureCR:cegraybl/cssc_phase_1.5from Sep 26, 2024
Merged
Conversation
…rmed by cli --output option
mabelegba
pushed a commit
that referenced
this pull request
Nov 25, 2025
* add pester tests for k8s-extension * Adding CLI Configuration for DisableInformerCache Flag (#2) This is required for our helm charts where customers can opt to change the caching behaviour during restore. * fix testcases for nodepool image issues (#5) * update readme and version release notes (#6) * fix: simplify logic and enable correct recording rule groups for managed prom extension (#7) * remove test cases specific to fork repo --------- Co-authored-by: Bavneet Singh <bavneetsingh@microsoft.com> Co-authored-by: Mayank Aggarwal <mayankagg9722@gmail.com> Co-authored-by: bragi92 <kadubey@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes aimed at improving the handling and representation of scan and workflow statuses in the
azext_acrcsscmodule. The most important changes include modifying the return values of functions to be more structured, and refactoring the string representation of workflow statuses.Improvements to status handling and representation:
src/acrcssc/azext_acrcssc/cssc.py: Modified thelist_scan_statusfunction to return theimage_statuslist instead of just printing each image.src/acrcssc/azext_acrcssc/helper/_workflow_status.py: Updated thefrom_taskrunfunction to return a list of status dictionaries instead ofWorkflowTaskStatusobjects.Refactoring for better structure:
src/acrcssc/azext_acrcssc/helper/_workflow_status.py: Refactored the__str__method to use a dictionary for constructing the status representation, and added aget_statusmethod to facilitate this change.