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

cert: add revocation reason back to cert-find output #156

Closed
wants to merge 1 commit into from
Closed

cert: add revocation reason back to cert-find output #156

wants to merge 1 commit into from

Conversation

HonzaCholasta
Copy link
Contributor

@HonzaCholasta HonzaCholasta commented Oct 12, 2016

In commit c718ef0 some param values were
accidentally removed from cert-find output.

In commit 22d5f57 serial_number_hex and
revoked were added back.

Add back revocation_reason as well.

https://fedorahosted.org/freeipa/ticket/6269

@pvomacka pvomacka self-assigned this Oct 12, 2016
@pvomacka
Copy link

I found one difference in output of cert-find command before and after this patch, it behaves differently only with --raw option. In output of the command without your commit there is following line: revoked: True . With your changes this line is missing.

Tried using this command (the same behaviour is in API):
ipa cert-find --user='test_user' --raw (--all)

Would it be possible to keep there also this information?

@HonzaCholasta
Copy link
Contributor Author

It's intentional. With --raw, only data retrieved directly from the backend should be returned. cert-show does the same.

I should have mentioned it in the commit message though...

In commit c718ef0 some param values were
accidentally removed from cert-find output.

In commit 22d5f57 `serial_number_hex` and
`revoked` were added back.

Add back `revocation_reason` as well. Also, do not include `revoked` with
--raw, as it's a virtual attribute.

https://fedorahosted.org/freeipa/ticket/6269
@pvomacka
Copy link

Ah, OK, then it works correctly. ACK

@pvomacka pvomacka added the ack Pull Request approved, can be merged label Oct 13, 2016
@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants