def render(self, validate=True):
        if validate:
            self.spec.validate()
        super(SimpleBuild, self).render()
        try:
            self.dj.dock_json_set_arg('exit_plugins', "store_metadata_in_osv3", "url",
                                      self.spec.builder_openshift_url.value)
        except __HOLE__:
            # For compatibility with older osbs.conf files
            self.dj.dock_json_set_arg('postbuild_plugins', "store_metadata_in_osv3", "url",
                                      self.spec.builder_openshift_url.value)

        # Remove 'version' from tag_and_push plugin config as it's no
        # longer needed
        if self.dj.dock_json_has_plugin_conf('postbuild_plugins',
                                             'tag_and_push'):
            push_conf = self.dj.dock_json_get_plugin_conf('postbuild_plugins',
                                                          'tag_and_push')
            try:
                registries = push_conf['args']['registries']
            except KeyError:
                pass
            else:
                for regdict in registries.values():
                    if 'version' in regdict:
                        del regdict['version']

        self.dj.write_dock_json()
        self.build_json = self.template
        logger.debug(self.build_json)
        return self.build_json
dataset/ETHPy150Open projectatomic/osbs-client/osbs/build/build_request.py/SimpleBuild.render