* Michael Pasternak <mpastern(a)redhat.com> [2012-08-27 09:45]:
Ryan,
each sdk method is well documented, if you'll take a look
on .delete().__doc__ it's:
@param storagedomain.host.id|name: string
[@param async: boolean (true|false)]
[@param correlation_id: any string]
and that's exactly what error says,
-> StorageDomain [host.id|name] required for remove
do:
sd = api.storagedomains.get(name="xxx")
sd.delete(storagedomain=params.StorageDomain(host=params.Host(id="yyy")))
This failed with bad request, but this worked:
sd.delete(storagedomain=params.StorageDomain(host=api.hosts.get('hostname
here')))
Thanks again,
Ryan
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh(a)us.ibm.com