Enable client deletion

Change-Id: Id190b7e8adee822e398a6bb204277bde23893419
This commit is contained in:
Memo Garcia 2017-03-03 17:48:39 +00:00
parent 994931fe34
commit 5e88395416

@ -113,14 +113,8 @@ class ClientDelete(command.Command):
return parser
def take_action(self, parsed_args):
# Need to check that client exists
client = self.app.client.clients.get(parsed_args.client_id)
if not client:
logging.info("Unable to delete specified client.")
raise exceptions.ApiClientException('Client not found')
self.app.client.clients.delete(parsed_args.client_id)
logging.info('Client {0} deleted'.format(parsed_args.client_id))
self.app.client.clients.delete(parsed_args.client_uuid)
logging.info('Client {0} deleted'.format(parsed_args.client_uuid))
class ClientRegister(command.Command):