From 52751fd173d4b45d49cb162dad165e1f02c9f504 Mon Sep 17 00:00:00 2001 From: Pengju Jiao Date: Thu, 30 Mar 2017 19:40:12 +0800 Subject: [PATCH] Fix 'freezer client-delete' error Currently, execute command 'freezer client-delete' to delete a client will be failed with error "Namespace object has no attribute 'client_uuid'", this patch will fix it. Change-Id: Ia2b56643c528327711e162e9e15b65ab1cf357bb Closes-Bug: #1677572 --- freezerclient/v1/clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freezerclient/v1/clients.py b/freezerclient/v1/clients.py index d380d33..625854d 100644 --- a/freezerclient/v1/clients.py +++ b/freezerclient/v1/clients.py @@ -113,8 +113,8 @@ class ClientDelete(command.Command): return parser def take_action(self, parsed_args): - self.app.client.clients.delete(parsed_args.client_uuid) - logging.info('Client {0} deleted'.format(parsed_args.client_uuid)) + self.app.client.clients.delete(parsed_args.client_id) + logging.info('Client {0} deleted'.format(parsed_args.client_id)) class ClientRegister(command.Command):