From 9c217891dae9e513b4234e1e74860b15f26e17f9 Mon Sep 17 00:00:00 2001 From: Julian Cheal Date: Tue, 7 Nov 2017 15:45:53 +0000 Subject: [PATCH] Added User Agent to VMDB::Appliance --- lib/vmdb/appliance.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vmdb/appliance.rb b/lib/vmdb/appliance.rb index 60e6f2933bf..2def2e8a999 100644 --- a/lib/vmdb/appliance.rb +++ b/lib/vmdb/appliance.rb @@ -24,6 +24,10 @@ def self.PRODUCT_NAME I18n.t("product.name") end + def self.USER_AGENT + "#{PRODUCT_NAME}/#{VERSION}".freeze + end + def self.log_config(*args) options = args.extract_options! fh = options[:logger] || $log