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']




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"


Correct wrong default bugzilla URI and use cleaner syntax.
Correct wrong default bugzilla URI and use cleaner syntax.
