Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <[email protected]>
  • Loading branch information
Lawouach committed May 12, 2020
1 parent c105a15 commit a05a04c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions chaosaws/asg/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ def detach_random_instances(asg_names: List[str] = None,
len(instances) * float(instance_percent)) / 100)

if instance_count > len(instances):
raise FailedActivity('You are attempting to detach more instances '
'than exist on asg %s' % (
a['AutoScalingGroupName']))
raise FailedActivity(
'You are attempting to detach more instances '
'than exist on asg %s' % (a['AutoScalingGroupName']))

instances = random.sample(instances, instance_count)

Expand Down
2 changes: 1 addition & 1 deletion chaosaws/ecs/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def stop_task(cluster: str = None, task_id: str = None, service: str = None,
tasks = list_tasks(cluster=cluster, client=client, service=service)
if not tasks:
raise FailedActivity(
"No ECS tasks found for service: {}".format(service))
"No ECS tasks found for service: {}".format(service))
task_id = random.choice(tasks)
task_id = task_id.rsplit("/", 1)[1]

Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ release = sdist bdist_wheel
test = pytest

[wheel]
universal = 0
universal = 0

[pycodestyle]
ignore = E741

0 comments on commit a05a04c

Please sign in to comment.