SoftLayer_Virtual_Guest_Block_Device_Template_Group.addLocations returns true but no locations added
<p>Trying to copy a private image to another datacenter using Python.  Code below returns true but transaction is not initiated and image is not copied.</p>

<pre><code>info=client['SoftLayer_Virtual_Guest_Block_Device_Template_Group'].addLocations({'id':449494},id=123456)
</code></pre>

<p>id is confirmed valid - using id with other services (getBlockDevices,getStatus,getChildren) provides appropriate responses.</p>

<p>what is wrong with the code above?</p>

<p>You should send between <strong>[ ]</strong> the template for locations, please thy the following</p>

<pre><code>info=client['SoftLayer_Virtual_Guest_Block_Device_Template_Group'].addLocations([{'id':449494}],id=123456)
</code></pre>

<p>References:</p>

<ul>
<li><a href="http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest_Block_Device_Template_Group/addLocations" rel="nofollow">SoftLayer_Virtual_Guest_Block_Device_Template_Group::addLocations</a></li>
</ul>

python softlayer