BUGFIX: undefined attribute 92/136192/1
authorJunghyun Kim <jh0822.kim@samsung.com>
Wed, 28 Jun 2017 10:52:07 +0000 (19:52 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Wed, 28 Jun 2017 10:52:07 +0000 (19:52 +0900)
PROBLEM:
 - AttributeError: GitObsMapping instance has no attribute 'cur_OBS_staging_project'

SOLUTION:
 - assign "" at the initialization

Change-Id: I00389c3cf40a188b984e70dcb438a022e9fe7a3e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
common/git_obs_mapping.py

index 4d6e332..eb482e6 100644 (file)
@@ -35,6 +35,8 @@ class GitObsMapping:
         self.cur_project = ""
         self.cur_default = 0
         self.cur_submission = "Y"
+        self.cur_OBS_staging_project = ""
+        self.cur_OBS_project = ""
 
         for root,dirs,files in os.walk(prjdir):
             for f in files: