summaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-10-17 13:34:56 -0400
committerParker Berberian <pberberian@iol.unh.edu>2018-10-17 13:34:56 -0400
commite93101c8a9fe35c9a0bc3bb4299fdc556e6fba9f (patch)
tree84a1dd92bc79921c5284e2997e9d41087babee89 /dashboard
parent25275685e9a735e51fae8b1a936ba5733f6fb770 (diff)
Fix clear_delta() function
NetworkConfig.clear_delta() appeared to be a noop, but can set the delta to a nonempty string if delta is None. This reverts a change I made here: https://gerrit.opnfv.org/gerrit/#/c/63385/6..7/dashboard/src/api/models.py Change-Id: I72661ca9d889801fb6183943c8ae0e5e38cc960a Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/src/api/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/src/api/models.py b/dashboard/src/api/models.py
index f1e9130..7448ac4 100644
--- a/dashboard/src/api/models.py
+++ b/dashboard/src/api/models.py
@@ -488,7 +488,8 @@ class NetworkConfig(TaskConfig):
return d
def clear_delta(self):
- pass
+ self.delta = json.dumps(self.to_dict())
+ self.save()
def add_interface(self, interface):
self.interfaces.add(interface)