Skip to content

Commit

Permalink
add enum all for coontrol status filter
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiquanJiang-ms committed Jul 10, 2024
1 parent 661e0f1 commit 6f8768f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/acat/azext_acat/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,13 @@ def _build_arguments_schema(cls, *args, **kwargs):
args_schema.compliance_status = AAZStrArg(
options=["--compliance-status"],
help="Compliance status.",
enum={"failed": "Failed", "succeeded": "Passed", "na": "Not Applicable"},
default="all",
enum={
"failed": "Failed",
"succeeded": "Passed",
"na": "Not Applicable",
"all": "Full Assessments",
},
default="Full Assessments",
)
return args_schema

Expand All @@ -276,7 +281,7 @@ def _output(self, *args, **kwargs):
f"No snapshot found for report {self.ctx.args.report_name}"
)
latestSnapshot = snapshots[0]
if self.ctx.args.compliance_status == "all":
if self.ctx.args.compliance_status == "Full Assessments":
return latestSnapshot
filteredCategories = [
{
Expand Down

0 comments on commit 6f8768f

Please sign in to comment.