Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 224018

Re: Did I find an API bug? : Adding multiple disks soap error

$
0
0

I did a dump like you said and it was very helpful.  I needed to add the code below to make it work

Turns out that I need a unique key for every disk that I am adding.  Thank you for your help

 

my $disk = VirtualDisk->new(

       controllerKey  => $devSpec->device->controllerKey,

       unitNumber     => $devSpec->device->unitNumber,

       key            => -1 *($i + 1),

       backing        => $devSpec->device->backing,

       capacityInKB   => $devSpec->device->capacityInKB,

    );

$devSpec = VirtualDeviceConfigSpec->new(

    operation     => $devSpec->operation,

    fileOperation => $devSpec->fileOperation,

    device        => $disk,

);

 

Is there a better way to do it than this


Viewing all articles
Browse latest Browse all 224018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>