# Check the vim desired by the message
vim_type = json.loads(message.value)["vim_type"].lower()
if vim_type == "openstack":
# A valid metric is created
config_metric.return_value = "metric_id", "resource_id", True
# Check the vim desired by the message
vim_type = json.loads(message.value)["vim_type"].lower()
if vim_type == "openstack":
# A valid metric is created
config_metric.return_value = "metric_id", "resource_id", True