Issue #5305

Updated by ppicka over 4 years ago

without <data type="updateinfo"> in repomd.xml in repository sync task will fail as we are checking updateinfo url which is not set up : 

 We should change the way of how we checking record type when sync or use 'null' values to skip conditionals. 

 "description": "local variable 'updateinfo_url' referenced before assignment", 
 "traceback": "    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/\", line 822, in perform_job\n      rv = job.perform()\n    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/\", line 605, in perform\n      self._result = self._execute()\n    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/\", line 611, in _execute\n      return self.func(*self.args, **self.kwargs)\n    File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/\", line 73, in synchronize\n      dv.create()\n    File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/\", line 169, in create\n      loop.run_until_complete(pipeline)\n    File \"/usr/lib64/python3.7/asyncio/\", line 568, in run_until_complete\n      return future.result()\n    File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/\", line 209, in create_pipeline\n      await asyncio.gather(*futures)\n    File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/\", line 43, in __call__\n      await\n    File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/\", line 308, in run\n      elif results[0].url == updateinfo_url:\n"