#!/usr/bin/bash

. /usr/share/shaman/functions

verify_caller

if [ -z "$CLUSTER_NAME" ]; then
	echo "CLUSTER_NAME environment variable undefined" 1>&2
	exit 1
fi

if [ -z "$CLIENT_ID" ]; then
	echo "CLIENT_ID environment variable undefined" 1>&2
	exit 1
fi

/usr/bin/vstorage -c "$CLUSTER_NAME" revoke -I "$CLIENT_ID"
