aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
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
commit84b16668fcb0be4fe3d39f793e912676c4431cbd (patch)
treee8a36e8ceaa793c8d1b9aa58bb75fb4b737ce054 /src/api
parent1f3a770d2547848590f39e9d9b9bdffeb94eec14 (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 'src/api')
-rw-r--r--src/api/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/models.py b/src/api/models.py
index f1e9130..7448ac4 100644
--- a/src/api/models.py
+++ b/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)