From 7e04d2c39d0abab906b2927acb3d0f184d09455c Mon Sep 17 00:00:00 2001 From: guo yunxian Date: Thu, 8 Dec 2016 17:16:32 +0800 Subject: [PATCH] Remove unused variables Defalut variablies is not used in function, remove them. Change-Id: Iccc097d9f15b1b8240f4eb75a4d32619b26ed777 --- zun/api/controllers/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zun/api/controllers/types.py b/zun/api/controllers/types.py index 6859ff1d4..55775841c 100644 --- a/zun/api/controllers/types.py +++ b/zun/api/controllers/types.py @@ -224,7 +224,7 @@ class Uuid(object): type_name = 'Uuid' @classmethod - def validate(cls, value, default=None): + def validate(cls, value): if not uuidutils.is_uuid_like(value): raise exception.InvalidUUID(uuid=value) return value @@ -273,7 +273,7 @@ class DateTime(object): type_name = "DateTime" @classmethod - def validate(cls, value, default=None): + def validate(cls, value): if value is None: return elif isinstance(value, datetime.datetime): @@ -286,7 +286,7 @@ class MemoryType(object): type_name = 'MemoryType' @classmethod - def validate(cls, value, default=None): + def validate(cls, value): if value is None: return elif value.isdigit() and int(value) >= MIN_MEMORY_SIZE: @@ -308,7 +308,7 @@ class ImageSize(object): type_name = 'ImageSize' @classmethod - def validate(cls, value, default=None): + def validate(cls, value): if value is None: return elif value.isdigit():