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

lconfig command not checking if machine exists #252

Closed
lorenzo93 opened this issue Nov 30, 2023 · 0 comments
Closed

lconfig command not checking if machine exists #252

lorenzo93 opened this issue Nov 30, 2023 · 0 comments
Assignees
Milestone

Comments

@lorenzo93
Copy link
Member

Operating System

MacOS 14.1.1

Kathará Version

3.7.0

Bug Description

If an lconfig command is issued with as parameter a non existent machine, Kathará throws an exception instead of an error

Steps To Reproduce

  • Get a Kathará lab
  • Run the Kathará lab with kathara lstart
  • Try to add an interface to a non existing machine kathara lconfig -n non_existing_machine --add A

You will get this error CRITICAL - (AttributeError) 'NoneType' object has no attribute 'reload'

Expected Behavior

Kathará should give a proper error.

Check Command Output

*       Current Manager is: Docker (Kathara)
*       Manager version is: 24.0.6
*       Python version is: 3.10.11 (v3.10.11:7d4cc5aa85, Apr  4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]
*       Kathara version is: 3.7.0
*       Operating System version is: macOS-14.1.1-arm64-arm-64bit
*       Trying to run `Hello World` container...
Deploying devices...|########################################################################################################| 1/1
*       Container run successfully.
Deleting devices...|#########################################################################################################| 1/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants