From 44b78e8faa9dfd7243df9bb8fad7861b34026812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Fri, 27 Jul 2018 17:41:47 +0200 Subject: [PATCH] Use Vmdb::Appliance.PRODUCT_NAME instead of calling i18n https://bugzilla.redhat.com/show_bug.cgi?id=1471301 --- app/controllers/api/api_controller.rb | 2 +- spec/requests/entrypoint_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 90b1635921..4908be38c9 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -71,7 +71,7 @@ def server_info def product_info { - :name => I18n.t("product.name"), + :name => Vmdb::Appliance.PRODUCT_NAME, :name_full => I18n.t("product.name_full"), :copyright => I18n.t("product.copyright"), :support_website => I18n.t("product.support_website"), diff --git a/spec/requests/entrypoint_spec.rb b/spec/requests/entrypoint_spec.rb index 84a4a4b20c..b27fbd65b0 100644 --- a/spec/requests/entrypoint_spec.rb +++ b/spec/requests/entrypoint_spec.rb @@ -65,7 +65,7 @@ expect(response.parsed_body).to include( "product_info" => a_hash_including( - "name" => I18n.t("product.name"), + "name" => Vmdb::Appliance.PRODUCT_NAME, "name_full" => I18n.t("product.name_full"), "copyright" => I18n.t("product.copyright"), "support_website" => I18n.t("product.support_website"),