fix legacy PEP8 violations in zabbix modules, remove test exception for them (#31702)

* fix legacy PEP8 violations in zabbix_*, remove test exception for them

* fix new pep8 violations for zabbix_maintenance.py
This commit is contained in:
Eike Frost 2017-10-16 19:20:54 +02:00 committed by René Moser
parent 85bd104c7c
commit 1b71fb0499
6 changed files with 14 additions and 21 deletions

View file

@ -226,7 +226,6 @@ import copy
try:
from zabbix_api import ZabbixAPI, ZabbixAPISubClass
# Extend the ZabbixAPI
# Since the zabbix-api python module too old (version 1.0, no higher version so far),
# it does not support the 'hostinterface' api calls,
@ -238,7 +237,6 @@ try:
ZabbixAPI.__init__(self, server, timeout=timeout, user=user, passwd=passwd, validate_certs=validate_certs)
self.hostinterface = ZabbixAPISubClass(self, dict({"prefix": "hostinterface"}, **kwargs))
HAS_ZABBIX_API = True
except ImportError:
HAS_ZABBIX_API = False