Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Iris Koester <[email protected]>
  • Loading branch information
iripiri committed Aug 14, 2023
1 parent 723f052 commit 6c6368f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions villas/controller/components/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ 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
existing_comp = self.mixin.components[comp.uuid]

# self.logger.error('UUID %s already exists, not added', comp.uuid)
# return
raise SimulationException(self, 'Component with same UUID ' +
'already exists!',
component=existing_comp)
Expand All @@ -67,9 +66,9 @@ def remove_component(self, comp):

def run_action(self, action, payload):
if action == 'create':
#print(message.payload)
#self.create(message)
self.create(payload)
# print(message.payload)
# self.create(message)
elif action == 'delete':
self.delete(payload)
else:
Expand Down
4 changes: 2 additions & 2 deletions villas/controller/components/simulators/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c6368f

Please sign in to comment.