Skip to content

kill_microservice not working due to naked 'body' args for functions #42

Closed
@maroda

Description

@maroda

This looks similar to #34

It appears actions.py has several incorrect instances of body as an argument.

If I edit to read body=body as in here for kill_microservice: https://github.com/chaostoolkit/chaostoolkit-kubernetes/blob/master/chaosk8s/actions.py#L67

The deployment will correctly be deleted. Without that edit, I will get the following:

[2019-06-19 17:32:43 ERROR]   => failed: TypeError: delete_namespaced_deployment() takes 3 positional arguments but 4 were given

And the function will not run, no deployment is deleted.

This also appears two other places:

https://github.com/chaostoolkit/chaostoolkit-kubernetes/blob/master/chaosk8s/actions.py#L81

https://github.com/chaostoolkit/chaostoolkit-kubernetes/blob/master/chaosk8s/actions.py#L95

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions