]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/call_home: add country code to the inventory report
authorYaarit Hatuka <yhatuka@ibm.com>
Mon, 21 Apr 2025 19:54:16 +0000 (15:54 -0400)
committerJustin Caratzas <jcaratza@redhat.com>
Tue, 23 Sep 2025 13:07:09 +0000 (09:07 -0400)
Country code was missing from the inventory report, adding it.

Resolves: rhbz#2361502

Signed-off-by: Yaarit Hatuka <yhatuka@ibm.com>
(cherry picked from commit 22b67301e27362e6f855c4d05b1003b7dee1a247)

src/pybind/mgr/call_home_agent/report.py

index 9c741efa97e6125e1d245a1ccdb3af7c9c60d4fd..7e62a9c5a8ba91a1b0b36e826e528d6c3ba72433 100644 (file)
@@ -66,7 +66,7 @@ class Report:
                 "asset_type": "RedHatMarine",
                 "asset_vendor": "IBM",
                 "asset_virtual_id": self.agent.ceph_cluster_id,
-                "country_code": "",
+                "country_code": self.agent.customer_country_code,
                 "event_id": report_event_id,
                 "event_time": report_times.time,
                 "event_time_ms": report_times.time_ms,
@@ -172,6 +172,7 @@ class EventGeneric(Event):
                 "request_time": report_times.time_ms,
                 "content": {},  # will be filled later
                 "ibm_customer_number": self.agent.icn,
+                "customer_country_code": self.agent.customer_country_code,
                 "product_id_list" : [
                     ['5900-AVA', 'D0CYVZX'],
                     ['5900-AVA', 'D0CYWZX'],