bugfix: Fix revoke logic.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>