pygui: fixed issues with configuring services on nodes due to refactoring changes

This commit is contained in:
Blake Harnden 2020-08-04 12:29:08 -07:00
parent 082677c17b
commit e2b3a2dc6d
2 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ class NodeConfigServiceDialog(Dialog):
elif not var.get() and name in self.current_services:
self.current_services.remove(name)
self.draw_current_services()
self.node.config_services[:] = self.current_services
self.node.config_services = self.current_services.copy()
def click_configure(self) -> None:
current_selection = self.current.listbox.curselection()
@ -130,7 +130,7 @@ class NodeConfigServiceDialog(Dialog):
self.current.listbox.itemconfig(tk.END, bg="green")
def click_save(self) -> None:
self.node.config_services[:] = self.current_services
self.node.config_services = self.current_services.copy()
logging.info("saved node config services: %s", self.node.config_services)
self.destroy()

View file

@ -126,7 +126,7 @@ class NodeServiceDialog(Dialog):
)
def click_save(self) -> None:
self.node.services[:] = self.current_services
self.node.services = self.current_services.copy()
self.destroy()
def click_remove(self) -> None: