'Map the extra spec key/values to LeftHand key/values.'

def _map_extra_specs(self, extra_specs):

    client_options = {}
    for (key, value) in extra_specs.items():
        client_key = extra_specs_key_map[key]
        try:
            value_map = extra_specs_value_map[client_key]
            client_value = value_map[value]
            client_options[client_key] = client_value
        except KeyError:
            LOG.error("'%(value)s'    is    an    invalid    value    for    extra    spec    '%(key)s'", {'value': value, 'key': key})
    return client_options
