'GCE does operations based on the `name` of resources, and also
assigns the name to the hostname. Users can change the
system\'s hostname but the metadata server\'s hostname attribute
will return the original instance name. Thus, we use that as the
source of the hostname.'

def compute_instance_id(self):

    fqdn = get_metadata_path('instance/hostname')
    return unicode(fqdn.split('.')[0])
