From 73db5a5498839b8174e68c073e4673cb988f3e6c Mon Sep 17 00:00:00 2001 From: Iris Koester Date: Mon, 14 Aug 2023 18:53:21 +0200 Subject: [PATCH] formatting Signed-off-by: Iris Koester --- villas/controller/components/manager.py | 8 ++++---- villas/controller/components/simulators/kubernetes.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/villas/controller/components/manager.py b/villas/controller/components/manager.py index b159ea2..62fe11e 100644 --- a/villas/controller/components/manager.py +++ b/villas/controller/components/manager.py @@ -42,8 +42,8 @@ def from_dict(dict): def add_component(self, comp): if comp.uuid in self.mixin.components: - #self.logger.error('UUID %s already exists, not added', comp.uuid) - #return +# self.logger.error('UUID %s already exists, not added', comp.uuid) +# return existing_comp = self.mixin.components[comp.uuid] raise SimulationException(self, 'Component with same UUID ' + @@ -67,8 +67,8 @@ def remove_component(self, comp): def run_action(self, action, payload): if action == 'create': - #print(message.payload) - #self.create(message) +# print(message.payload) +# self.create(message) self.create(payload) elif action == 'delete': self.delete(payload) diff --git a/villas/controller/components/simulators/kubernetes.py b/villas/controller/components/simulators/kubernetes.py index 66253aa..9a6373e 100644 --- a/villas/controller/components/simulators/kubernetes.py +++ b/villas/controller/components/simulators/kubernetes.py @@ -2,8 +2,8 @@ from typing import TYPE_CHECKING import json import signal -from copy import deepcopy -import collections +# from copy import deepcopy +# import collections import time import kubernetes as k8s