def get_datacenter(content, obj):
datacenters = content.rootFolder.childEntity<EOL>for d in datacenters:<EOL><INDENT>dch = get_all(content, d, type(obj))<EOL>if dch is not None and obj in dch:<EOL><INDENT>return d<EOL><DEDENT><DEDENT>
Get the datacenter to whom an object belongs