diff --git a/app/lib/usage_report.rb b/app/lib/usage_report.rb index 52861b00a..2c7ca50b7 100644 --- a/app/lib/usage_report.rb +++ b/app/lib/usage_report.rb @@ -10,8 +10,8 @@ def self.generate version.app Rails.application.config.app_version version.sha Rails.application.config.git_sha version.image ENV.fetch("DOCKER_TAG", nil)&.split(":")&.first + version.arch RUBY_PLATFORM end - report.arch RUBY_PLATFORM end end diff --git a/spec/lib/usage_report_spec.rb b/spec/lib/usage_report_spec.rb index 6e87bb9f9..bcd1272cc 100644 --- a/spec/lib/usage_report_spec.rb +++ b/spec/lib/usage_report_spec.rb @@ -23,7 +23,7 @@ it "includes architecture" do stub_const("RUBY_PLATFORM", "test-arch") - expect(parsed["arch"]).to eq "test-arch" + expect(parsed["version"]["arch"]).to eq "test-arch" end it "includes application version" do