'Default implementation for function get_resource.
This may be overridden by resource plugins to add extra
logic specific to the resource implementation.'

def get_reference_id(self):

    if (self.resource_id is not None):
        return six.text_type(self.resource_id)
    else:
        return six.text_type(self.name)
