From a105ee094333f36d7d000c19d15dba0f1e900c92 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 26 Feb 2019 15:30:26 +0000 Subject: Deploy Templates: add 'extra' field to DB & object The original patch [1] to add DB & object support for deploy templates did not include an 'extra' field for metadata. This patch adds the field, and bumps the object version. Change-Id: I95b4beae217704defc9eab851780fd9c42847c40 Story: 1722275 Task: 29698 --- ironic/objects/deploy_template.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ironic/objects') diff --git a/ironic/objects/deploy_template.py b/ironic/objects/deploy_template.py index f6358fae5..7c8238201 100644 --- a/ironic/objects/deploy_template.py +++ b/ironic/objects/deploy_template.py @@ -20,7 +20,8 @@ from ironic.objects import fields as object_fields @base.IronicObjectRegistry.register class DeployTemplate(base.IronicObject, object_base.VersionedObjectDictCompat): # Version 1.0: Initial version - VERSION = '1.0' + # Version 1.1: Added 'extra' field + VERSION = '1.1' dbapi = db_api.get_instance() @@ -29,6 +30,7 @@ class DeployTemplate(base.IronicObject, object_base.VersionedObjectDictCompat): 'uuid': object_fields.UUIDField(nullable=False), 'name': object_fields.StringField(nullable=False), 'steps': object_fields.ListOfFlexibleDictsField(nullable=False), + 'extra': object_fields.FlexibleDictField(nullable=True), } # NOTE(mgoddard): We don't want to enable RPC on this call just yet. -- cgit v1.2.1