require 'ostruct'
require 'yaml'

AppConfig = YAML.load_file(Rails.root.join('config', 'cfme_bz.yml'))[Rails.env] rescue {"bugzilla"=>{}}

AppConfig['bugzilla']['uri'] ||= "https://bugzilla.redhat.com/"
AppConfig['bugzilla']['product'] ||= "CloudForms Management Engine"


require 'ostruct'
require 'yaml'

AppConfig = YAML.load_file(Rails.root.join('config', 'cfme_bz.yml'))[Rails.env] rescue {"bugzilla"=>{}}

AppConfig['bugzilla']['uri'] = "https://bugzilla.redhat.com/show_bug.cgi?id=" unless AppConfig['bugzilla']['uri']
AppConfig['bugzilla']['product'] = "CloudForms Management Engine" unless AppConfig['bugzilla']['product']




--- 
+++ 
@@ -3,8 +3,6 @@
 
 AppConfig = YAML.load_file(Rails.root.join('config', 'cfme_bz.yml'))[Rails.env] rescue {"bugzilla"=>{}}
 
-AppConfig['bugzilla']['uri'] = "https://bugzilla.redhat.com/show_bug.cgi?id=" unless AppConfig['bugzilla']['uri']
-AppConfig['bugzilla']['product'] = "CloudForms Management Engine" unless AppConfig['bugzilla']['product']
+AppConfig['bugzilla']['uri'] ||= "https://bugzilla.redhat.com/"
+AppConfig['bugzilla']['product'] ||= "CloudForms Management Engine"
 
-
-
Correct wrong default bugzilla URI and use cleaner syntax.
