def deploy(self, ultra=False):
        self.done = self.upload_files(ultra)

        if self.hub_session:
            headers = {'Cookie': self.hub_cookie}
            fields = {'session': self.hub_session}

            try:
                if self.done:
                    self.hub_pool.request('POST',
                                          '/dynamic/upload/end',
                                          fields=fields,
                                          headers=headers,
                                          redirect=False,
                                          retries=5,
                                          timeout=self.hub_timeout)
                else:
                    self.hub_pool.request('POST',
                                          '/dynamic/upload/cancel',
                                          fields=fields,
                                          headers=headers,
                                          redirect=False,
                                          retries=5,
                                          timeout=self.hub_timeout)
            except (__HOLE__, SSLError) as e:
                LOG.error(e)
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/lib/deploy.py/Deployment.deploy