Remove name generation in resource type creation

Set name as mandatory parameter when creating a resource type
in gnocchi metric service.

Change-Id: I2403aff6a88176bbc1f438c8f5ce0453ab1ae915
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
This commit is contained in:
Juha Kosonen 2018-04-18 13:50:35 +03:00
parent 26212931fb
commit 48f97eea90

View File

@ -180,7 +180,7 @@ class GnocchiService(service.Service):
:param name: Name of the resource type
"""
resource_type = {"name": name or self.generate_random_name()}
resource_type = {"name": name}
if attributes is not None:
resource_type["attributes"] = attributes