aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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),