Skip to content

define might get silently ignored #53

Open
@thomwiggers

Description

@thomwiggers

This was a big source of confusion for me, as I'd been trying to use ansible to resize VMs.

except libvirtError as e:
if e.get_error_code() != 9: # 9 means 'domain already exists' error
module.fail_json(msg='libvirtError: %s' % e.message)

While I expect a definition to be updated (if I use the virsh define command line this works as expected), instead this is just getting silently ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions