diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-04-23 05:28:10 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-05-03 01:57:34 +0200 |
commit | 1b8f5230d01499d97b874d4912c5c1a13e389c5f (patch) | |
tree | 761b0f7d2b2de2e58862fe81af1bee219e078f47 /base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java | |
parent | 0b779ffe4d29474b4f75370e4da9d7723d9bfec5 (diff) | |
download | pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.tar.gz pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.tar.xz pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.zip |
Renamed token status UNINITIALIZED to READY.
The token status UNINITIALIZED has been renamed to READY for
clarity.
To simplify the transition, the CLIs and the REST API will continue
to accept UNINITIALIZED but it will be converted internally into
READY and a deprecation warning will be generated.
https://fedorahosted.org/pki/ticket/2288
Diffstat (limited to 'base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java')
-rw-r--r-- | base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java b/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java index 01cde7608..0a0b10d46 100644 --- a/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java +++ b/base/tps/src/org/dogtagpki/server/tps/processor/TPSProcessor.java @@ -2055,8 +2055,8 @@ public class TPSProcessor { if (isTokenPresent) { CMS.debug("TPSProcessor.format: token exists"); - TokenStatus newState = TokenStatus.UNINITIALIZED; - // Check for transition to 0/UNINITIALIZED status. + TokenStatus newState = TokenStatus.READY; + // Check for transition to 0/READY status. if (!tps.engine.isOperationTransitionAllowed(tokenRecord.getTokenStatus(), newState)) { String info = " illegal transition attempted: " + tokenRecord.getTokenStatus() + @@ -2151,7 +2151,7 @@ public class TPSProcessor { } // Update Token DB - tokenRecord.setStatus("uninitialized"); + tokenRecord.setStatus("ready"); try { tps.tdb.tdbUpdateTokenEntry(tokenRecord); } catch (Exception e) { |