On 27.08.2019 14:38, MKPhil wrote:
> I ask because I've written a module, based on vmware_guest_find, that
> returns the Datacenter for a given VM and VCenter, which I can then feed in
> to the other "official" modules. My module uses the built-in function
> "get_parent_datacenter" (defined in
>
https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/vmware.py)
> so I'm not inventing anything particularly new. My point is that if I, an
> amateur Python coder at best, can do this, why can't the official modules
> do it by default? Is there some reason for the current behaviour that I am
> missing?
If I have two VM both called hostA, one in datacenter-north and one in datacenter-south, which one do you choose?