'Read information and transform it
The values that are returned by BIG-IP in the f5-sdk can have encoding
attached to them as well as be completely missing in some cases.
Therefore, this method will transform the data from the BIG-IP into a
format that is more easily consumable by the rest of the class and the
parameters that are supported by the module.'

def read(self):

    p = dict()
    name = self.params['name']
    partition = self.params['partition']
    r = self.api.tm.gtm.datacenters.datacenter.load(name=name, partition=partition)
    if hasattr(r, 'servers'):
        p['servers'] = set([str(x) for x in r.servers])
    if hasattr(r, 'contact'):
        p['contact'] = str(r.contact)
    if hasattr(r, 'location'):
        p['location'] = str(r.location)
    if hasattr(r, 'description'):
        p['description'] = str(r.description)
    if r.enabled:
        p['enabled'] = True
    else:
        p['enabled'] = False
    p['name'] = name
    return p
