Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local VMs cannot be stopped #878

Open
t0mg1t opened this issue Jan 30, 2024 · 4 comments
Open

Local VMs cannot be stopped #878

t0mg1t opened this issue Jan 30, 2024 · 4 comments

Comments

@t0mg1t
Copy link

t0mg1t commented Jan 30, 2024

Hey there

When I try to stop the local attack range with python attack_range.py stop, the following error occurs:

Traceback (most recent call last):
File "/home/....../git_tools/attack_range/attack_range.py", line 235, in
main(sys.argv[1:])
File "/home/......./git_tools/attack_range/attack_range.py", line 231, in main
return args.func(args)
^^^^^^^^^^^^^^^
File "/home/......./git_tools/attack_range/attack_range.py", line 93, in stop
controller.stop(instance_ids)
TypeError: VagrantController.stop() takes 1 positional argument but 2 were given

@roadside-picnicx
Copy link

roadside-picnicx commented Mar 27, 2024

Im just adding that i have the same problem, both stop and run commands return errors like the one described above.

@TimWinkler
Copy link

hi, goto line 93 in attack_range.py and change from controller.stop(instance_ids) to controller.stop()

@TimWinkler
Copy link

I think the issue is that if the instance_ids are "empty" it is still set to the Datatype "None" (which is not "null/empty") and
then passed as 2nd argument to the VagrantController

@rangerrkm
Copy link

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants