Returned back right info structure
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 17 Apr 2013 14:55:06 +0000 (17:55 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Wed, 17 Apr 2013 14:55:06 +0000 (17:55 +0300)
Structure of info structure in job_pre_release_gerrit was changed on
some rebase or merge. Returning it back to the right one.

Change-Id: I424c1aa5ac833c7f1b2d838227b56dc1591cb2e8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
job_pre_release_gerrit.py

index 6565ddf..4e6e7d7 100755 (executable)
@@ -58,10 +58,10 @@ def create(git_url, git_project, git_tag, git_revision, build,
 
     # Create review project if it doesn't exist
     print "Creating temporary review OBS project %s" % obs_project
-    info = {git_project: {'obs_target_prj': obs_target_prj,
-                          'git_url': git_url,
-                          'git_tag': git_tag,
-                          'git_revision': git_revision}}
+    info = {'projects': [git_project],
+            'obs_target_prj': obs_target_prj,
+            'git_tag': git_tag}
+
     if build.exists(obs_project):
         # update project info
         build.update_info(info, obs_project)