Fix references to start and end dates

The lease attributes are called start_date and end_date, not start_time
and end_time.

Change-Id: I77fb08a3811ed1445e31b3552ca23d5bfc43a07d
This commit is contained in:
Pierre Riteau 2022-03-10 16:47:21 +01:00
parent aa2a14a037
commit bd6469d53c
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ class SQLAlchemyDBApiTestCase(tests.DBTestCase):
self.assertEqual(['1', '2'], db_api.lease_list())
def test_lease_update(self):
"""Update both start_time and name and check lease has been updated."""
"""Update both start_date and name and check lease has been updated."""
result = _create_physical_lease()
result = db_api.lease_update(result['id'],
values={'name': 'lease_renamed'})

View File

@ -39,7 +39,7 @@ as follows:
MaxLeaseDurationFilter
----------------------
This filter simply examines the lease ``start_time`` and ``end_time``
This filter simply examines the lease ``start_date`` and ``end_date``
attributes and rejects the lease if its duration exceeds a threshold. It
supports two configuration options: