From 3e4868bd130088c127260d0be65d6b139523173b Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Mon, 24 Aug 2015 10:42:34 +0200 Subject: [PATCH] Fix default value for server name OpenStack API v2.1 introduced validation for the server names, that need to match '^[a-zA-Z0-9-._]*$'. In the default value we were using the invalid "OCCI VM". Change-Id: Iec796e117176e8a5b39be5a28146d0f555596ce0 --- ooi/api/compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooi/api/compute.py b/ooi/api/compute.py index 26b31af..48635f2 100644 --- a/ooi/api/compute.py +++ b/ooi/api/compute.py @@ -111,7 +111,7 @@ class Controller(ooi.api.base.Controller): validator.validate(scheme) attrs = obj.get("attributes", {}) - name = attrs.get("occi.core.title", "OCCI VM") + name = attrs.get("occi.core.title", "OCCI_VM") image = obj["schemes"][templates.OpenStackOSTemplate.scheme][0] flavor = obj["schemes"][templates.OpenStackResourceTemplate.scheme][0] user_data = None