[Title] read config bug fix
authorjiil.hyoun <jiil.hyoun@samsung.com>
Mon, 26 Nov 2012 03:37:16 +0000 (12:37 +0900)
committerjiil.hyoun <jiil.hyoun@samsung.com>
Mon, 26 Nov 2012 03:37:16 +0000 (12:37 +0900)
[Type] Bugfix
[Module] Toolchain /
[Priority] Major
[Jira#]
[Redmine#]
[Problem]  use id not @id
[Cause]
[Solution]
[TestCase]

Change-Id: I0c59db14ff80f6f4d0a2a8ce40b29874bf75f4eb

src/build_server/BuildServerController.rb

index 2f7a77e9234ee5b06bc0cb98284ede551f48545b..c5c274f379e12e98bc22e2062b8a853a4fae0843 100644 (file)
@@ -871,13 +871,13 @@ class BuildServerController
                                elsif l.start_with?("DB_DSN=")
                                        case l[idx,length].strip
                                        when /^SQLite3:(.*)/i then
-                                               if $1.strip.empty? then db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{@id}/server.db"
+                                               if $1.strip.empty? then db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{id}/server.db"
                                                else db_dsn = "SQLite3:#{$1.strip}"
                                                end
                                        when /^Mysql:(.*)/i then
                                                db_dsn = "Mysql:#{$1}"
                                        else
-                                               db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{@id}/server.db"
+                                               db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{id}/server.db"
                                        end
                                elsif l.start_with?("DB_USER=")
                                        db_user = l[idx,length].strip if not l[idx,length].strip.empty?