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
This commit is contained in:
parent
fe4a9be744
commit
3e4868bd13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user