File zabbix-cli-2.1.1-fix-whitespace.patch of Package python-zabbix-cli

Index: zabbix_cli/cli.py
===================================================================
--- zabbix_cli/cli.py.orig	2019-05-09 08:45:30.000000000 +0200
+++ zabbix_cli/cli.py	2019-05-23 13:32:27.244127658 +0200
@@ -2911,8 +2911,8 @@ class zabbixcli(cmd.Cmd):
             # Generate lists with hostID anf hostgroupID information.
             #
 
-            for value in host_hostgroup.replace(' ', '').split(','):
-
+            for value in host_hostgroup.split(','):
+                value = value.strip()
                 if self.host_exists(value):
                     host_ids.append(self.get_host_id(value))
 
openSUSE Build Service is sponsored by