Skip to content

Conversation

@tromai
Copy link
Contributor

@tromai tromai commented Jun 1, 2023

Description
I fixed issue #250 by assigning both --file and --show-prelude flags in the verify-policy action command to a mutual exclusive group.
This will effective only allow the user to use either --file or --show-prelude at one time.
I also refactored the code to generate the prelude from a database to a different method rather than putting it inside the same method used for running the policy engine against the policy file provided in --file.

@tromai tromai added the bug Something isn't working label Jun 1, 2023
@tromai tromai added this to the Release v0.1.0 milestone Jun 1, 2023
@tromai tromai self-assigned this Jun 1, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 1, 2023
@tromai tromai marked this pull request as ready for review June 1, 2023 07:51
@tromai tromai requested a review from behnazh-w as a code owner June 1, 2023 07:51
@behnazh-w
Copy link
Member

As discussed, the scope for this PR/commit should not be fix because we don't want it to appear in the changelog.

@tromai tromai changed the title fix: remove running the policy engine when --show-prelude is provided chore: remove running the policy engine when --show-prelude is provided Jun 1, 2023
Signed-off-by: Trong Nhan Mai <trong.nhan.mai@oracle.com>
@tromai tromai force-pushed the 250-using-the-show-prelude-option-in-the-verify-policy-command-still-require-the-path-to-the-policy-file branch from 8ab8172 to abdc003 Compare June 1, 2023 23:48
@tromai
Copy link
Contributor Author

tromai commented Jun 1, 2023

Thanks @behnazh-w, I have renamed the PR and change the commit message.

@tromai tromai merged commit 5be116f into staging Jun 2, 2023
@tromai tromai deleted the 250-using-the-show-prelude-option-in-the-verify-policy-command-still-require-the-path-to-the-policy-file branch June 2, 2023 00:38
art1f1c3R pushed a commit that referenced this pull request Nov 29, 2024
…ed (#270)

Signed-off-by: Trong Nhan Mai <trong.nhan.mai@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using the show-prelude option in the verify-policy command still require the path to the policy file

2 participants