[ZBX-5559] short package listing contains a leading space Created: 2012 Sep 09  Updated: 2017 May 30  Resolved: 2012 Sep 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Trivial
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

full package info contains package manager in square brackets, followed by space separated package list.
[rpm] package1 package2

specifying 'short' as the 3rd parameter omits the package manager type, but does not remove the extra leading space :

$ echo "a$(zabbix_get -s 127.0.0.1 -k system.sw.packages[php.*xml,,short])a"
a php5-xmlreader-5.3.8-4.24.1.i586, php5-xmlwriter-5.3.8-4.24.1.i586a



 Comments   
Comment by Andris Mednis [ 2012 Sep 13 ]

Fixed together with ZBX-5571 in development branch svn://svn.zabbix.com/branches/dev/ZBX-5571

Comment by Alexander Vladishev [ 2012 Sep 17 ]

Successfully tested!

Comment by Andris Mednis [ 2012 Oct 04 ]

Fixed in versions pre-2.0.4 rev. 30625 and pre-2.1.0 rev. 30626.

Generated at Thu Mar 28 17:32:52 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.