#269 Add its own return code for EEXISTS for getcert tool
Opened 4 months ago by asn. Modified 4 months ago

If you try to add a CA or template with the getcert tool, it should have its own return code if the CA or template already exists. Maybe also for other commands, but this is what I care about :-)

With verbose output you get:

org.fedorahosted.certmonger.duplicate: There is already a CA with the nickname "EARTH-Root-CA".

It shouldn't be hard to map org.fedorahosted.certmonger.duplicate to an EEXISTS return code.


Metadata Update from @rcritten:
- Issue assigned to rcritten

4 months ago

Please add it too for getcert request too

org.fedorahosted.certmonger.duplicate: There is already a template with the nickname ...

My patch will do that. Any getcert response that includes org.fedorahosted.certmonger.duplicate will return 2.

Login to comment on this ticket.

Metadata