diff --git a/ironic/api/controllers/v1/types.py b/ironic/api/controllers/v1/types.py index ffcaa7b7f1..1dc4ed6188 100644 --- a/ironic/api/controllers/v1/types.py +++ b/ironic/api/controllers/v1/types.py @@ -34,11 +34,6 @@ class MacAddressType(wtypes.UserType): basetype = wtypes.text name = 'macaddress' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -56,11 +51,6 @@ class UuidOrNameType(wtypes.UserType): basetype = wtypes.text name = 'uuid_or_name' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -81,11 +71,6 @@ class NameType(wtypes.UserType): basetype = wtypes.text name = 'name' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -105,11 +90,6 @@ class UuidType(wtypes.UserType): basetype = wtypes.text name = 'uuid' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -129,11 +109,6 @@ class BooleanType(wtypes.UserType): basetype = wtypes.text name = 'boolean' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -155,11 +130,6 @@ class JsonType(wtypes.UserType): basetype = wtypes.text name = 'json' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name def __str__(self): # These are the json serializable native types @@ -185,11 +155,6 @@ class ListType(wtypes.UserType): basetype = wtypes.text name = 'list' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value):