- conf: Update the 'VirtualizationVendor' action to strip any

URLs that may follow the vendor name
  Modified vhostmd-conf.patch
  bsc#1230961

OBS-URL: https://build.opensuse.org/package/show/Virtualization/vhostmd?expand=0&rev=59
This commit is contained in:
2024-12-06 00:28:48 +00:00
committed by Git OBS Bridge
parent a9be74c7e1
commit aadaca83b1
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Dec 6 00:25:00 UTC 2024 - James Fehlig <jfehlig@suse.com>
- conf: Update the 'VirtualizationVendor' action to strip any
URLs that may follow the vendor name
Modified vhostmd-conf.patch
bsc#1230961
-------------------------------------------------------------------
Tue Oct 1 17:55:04 UTC 2024 - James Fehlig <jfehlig@suse.com>
+9
View File
@@ -18,3 +18,12 @@ Index: vhostmd-1.2/vhostmd.xml
<!-- <transport>xenstore</transport> -->
</globals>
<metrics>
@@ -53,7 +53,7 @@ the logical && operator must be replaced
<metric type="string" context="host">
<name>VirtualizationVendor</name>
<action>
- rpm -q --qf '%{VENDOR}\n' -qf /etc/os-release
+ rpm -q --qf '%{VENDOR}\n' -f /etc/os-release | sed -e 's/&lt;.*//' -e 's/ *$//'
</action>
</metric>
<metric type="string" context="host">