diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-12-10 16:06:03 -0500 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-12-10 16:06:03 -0500 |
commit | 5d6508e277e2c373d8e2cde320a2537f42c8189d (patch) | |
tree | 6a13c9c387758498a5cdd48fc9e822c01d8e9c30 | |
parent | f8f11647db0502737c3e17d13dbc68f523185d55 (diff) |
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: I8c49e33a33389cf362ff680735f6e538162a5414
-rw-r--r-- | src/api/models.py | 3 |
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), |