test remove instance function

This commit is contained in:
root 2020-04-12 19:19:56 -04:00
parent 67824caafb
commit a1377a5962
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ The program needs to run as root.
Todos
====
- [x] improve log reading efficiency, potentially using pytailer
- [ ] remove instance or change configuration
- [x] remove instance or change configuration
- [ ] improve ui using template, move to ajax
- [ ] parameterize inline constants
- [ ] refractor code

View File

@ -91,6 +91,8 @@ class OManager:
instance["op"].stop()
instance["weight"] = 0
self.instances.remove(instance)
if len(self.instances)==0:
self.new_idx = 0
self.reset_lb()
def remove_all_op(self):