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

function vm_is_running is not working #148

Closed
truongquocloc opened this issue Sep 13, 2024 · 1 comment · Fixed by #149
Closed

function vm_is_running is not working #148

truongquocloc opened this issue Sep 13, 2024 · 1 comment · Fixed by #149
Assignees
Labels
bug Something isn't working

Comments

@truongquocloc
Copy link

truongquocloc commented Sep 13, 2024

function vm_is_running is not working

i fix it:

def vm_is_running(self: "PyMemuc", vm_index: int = 0) -> bool:
    """Check if a VM is running

    :param vm_index: VM index. Defaults to 0.
    :type vm_index: int, optional
    :return: True if the VM is running, False otherwise
    :rtype: bool
    """
    _, output = self.memuc_run(["-i", str(vm_index), "isvmrunning"])
    if 'Not Running' in output: return False
    else: return True
@martinmiglio martinmiglio self-assigned this Sep 13, 2024
@martinmiglio martinmiglio added the bug Something isn't working label Sep 13, 2024
@martinmiglio martinmiglio linked a pull request Sep 13, 2024 that will close this issue
@martinmiglio
Copy link
Member

Released as v0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants