Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created May 24, 2012 21:46
Show Gist options
  • Save bodepd/2784421 to your computer and use it in GitHub Desktop.
Save bodepd/2784421 to your computer and use it in GitHub Desktop.
+ LOG.info("Attaching device with virsh because attachDevice does not work")
+ device_path = connection_info['data']['device_path']
+ utils.execute('virsh', "attach-disk", instance_name, device_path, mount_device, run_as_root=True)
- virt_dom.attachDevice(xml)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment