Comment 3 for bug 1206659

Revision history for this message
Curtis Hovey (sinzui) wrote :

I think bundles are dynamic. I see

        with translate_error():
            try:
                for (name, properties, dynamic) in (
                        (CHARM, charm_properties, False),
                        (BUNDLE, bundle_properties, True)):
                    self._client.put_mapping(self.index_name, name, {
                        name: {
                            'type': 'object',
                            'dynamic': dynamic,
                            'properties': properties,
                        }
                    })

I suspect that we can change bundled to dynamic=False, or remove the opportunity to accidentally pass dynamic=True:

        with translate_error():
            try:
                for (name, properties) in (
                        (CHARM, charm_properties,),
                        (BUNDLE, bundle_properties)):
                    self._client.put_mapping(self.index_name, name, {
                        name: {
                            'type': 'object',
                            'dynamic': False,
                            'properties': properties,
                        }
                    })