Ejemplo n.º 1
0
def _description_from_vm_name(vm_name: str) -> Optional[str]:
    """
    Given the name of a VirtualBox VM, return its description address.
    """
    vm = vertigo_py.VM(name=vm_name)
    info = vm.parse_info()
    return info.get('description')
Ejemplo n.º 2
0
def _description_from_vm_name(
    vm_name: str, ) -> Optional[str]:  # pragma: no cover
    """
    Given the name of a VirtualBox VM, return its description address.
    """
    vertigo_vm = vertigo_py.VM(name=vm_name)  # type: ignore
    info = vertigo_vm.parse_info()
    if 'description' in info:
        return str(info['description'])
    return None