diff options
author | Mark Goddard <mark@stackhpc.com> | 2019-02-26 15:30:26 +0000 |
---|---|---|
committer | Mark Goddard <mark@stackhpc.com> | 2019-02-26 15:54:51 +0000 |
commit | a105ee094333f36d7d000c19d15dba0f1e900c92 (patch) | |
tree | 04c0e119f8c8c120cf5e3f958fc4c739c6a54212 /ironic/objects | |
parent | ba83855111b6d41595be7c1fff6b4c254519b793 (diff) | |
download | ironic-a105ee094333f36d7d000c19d15dba0f1e900c92.tar.gz |
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
Diffstat (limited to 'ironic/objects')
-rw-r--r-- | ironic/objects/deploy_template.py | 4 |
1 files changed, 3 insertions, 1 deletions
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. |