From 52b1dac8907f39d438f86fee6375ba5c76a8be06 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 28 Aug 2018 16:10:09 +0100 Subject: [PATCH] Remove outdated code This code doesn't match the new lease status introduced in Queens and is not used anywhere anyway. Change-Id: I1189f149aff4407f00dbb890c3f0e02a0aa79a14 --- blazar_dashboard/api/client.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/blazar_dashboard/api/client.py b/blazar_dashboard/api/client.py index e97c99c..df506f7 100644 --- a/blazar_dashboard/api/client.py +++ b/blazar_dashboard/api/client.py @@ -26,12 +26,6 @@ LOG = logging.getLogger(__name__) class Lease(base.APIDictWrapper): """Represents one Blazar lease.""" - ACTIONS = (CREATE, DELETE, UPDATE, START, STOP - ) = ('CREATE', 'DELETE', 'UPDATE', 'START', 'STOP') - - STATUSES = (IN_PROGRESS, FAILED, COMPLETE - ) = ('IN_PROGRESS', 'FAILED', 'COMPLETE') - _attrs = ['id', 'name', 'start_date', 'end_date', 'user_id', 'project_id', 'before_end_date', 'status', 'degraded']