On 05/16/2012 03:44 PM, Ori Liel wrote:
It's true, existence of ID/name does determine behaviour
elsewhere in the API. In this specific case,
it feels a bit less intuitive; what do you think about the difference between the
following two
scenarios?
If user passes clone=true, and this VM doesn't already exist on the destination
storage-domain, then
the operation fails - makes direct sense: you wanted to clone, but this VM doesn't
already exist.
If user passes name=VM1, and this VM doesn't already exist on the destination
storage-domain, then
the operation fails - a bit strange. The logic is more construed: you supplied a name,
therefore you
meant you want to clone, but this VM doesn't already exist.
it's just another import, see my other email on this with pseudocode.
--
Michael Pasternak
RedHat, ENG-Virtualization R&D