aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-12-10 16:06:03 -0500
committerSawyer Bergeron <sbergeron@iol.unh.edu>2020-12-10 16:06:03 -0500
commit5d6508e277e2c373d8e2cde320a2537f42c8189d (patch)
tree6a13c9c387758498a5cdd48fc9e822c01d8e9c30 /src
parentf8f11647db0502737c3e17d13dbc68f523185d55 (diff)
Fix job serialization error for specific_job2.1.0-rc32.1.0
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I8c49e33a33389cf362ff680735f6e538162a5414
Diffstat (limited to 'src')
-rw-r--r--src/api/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/models.py b/src/api/models.py
index 527e66b..d1bb692 100644
--- a/src/api/models.py
+++ b/src/api/models.py
@@ -666,6 +666,9 @@ class HardwareConfig(TaskConfig):
keys = set(["id", "image", "power", "hostname", "ipmi_create"])
+ def to_dict(self):
+ return self.get_delta()
+
def get_delta(self):
return self.format_delta(
self.hosthardwarerelation.get_resource().get_configuration(self.state),