<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dňa 22.04.2015 o 13:09 Juan Hernández
napísal(a):
</div>
<blockquote cite="mid:55378153.8050203@redhat.com" type="cite">
<pre wrap="">
# Iterate the disks of the VM and for each of them move it
# to the target storage domain:
for disk in vm.disks.list():
# Start moving the disk. Note that this is an asynchronous
# operation, so once the "move" method returns you will
# have to wait for the actual movement to finish.
print("Moving disk \"%s\" ..." % disk.get_alias())
disk.move(
params.Action(
storage_domain=sd
)
)
</pre>
</blockquote>
This works nicely, thank you.<br>
<br>
<div class="moz-signature">-- <br>
<div id="oernii_footer" style="color: gray;">
<span style="font-family: Lucida Console, Luxi Mono, Courier,
monospace; font-size: 90%;">
Ernest Beinrohr, AXON PRO<br>
<a style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/ing.php">Ing</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/vca.php">VCA</a>, <br>
+421-2-62410360 +421-903-482603
<br>
</span> </div>
<img
src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk"
moz-do-not-send="true" border="0" width="1" height="1">
</div>
</body>
</html>