Clean imports in code

In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ib4e476a6c824d6287eaff41d3fd1141b414bd653
This commit is contained in:
Nguyen Hung Phuong 2016-09-15 15:42:38 +07:00
parent abca9ebb98
commit c9e9e60ab6
1 changed files with 3 additions and 3 deletions

View File

@ -13,10 +13,10 @@
import os.path
import sys
import zabbixApi
sys.path.insert(0, os.getcwd())
from zabbixApi import ZabbixApi
if __name__ == "__main__":
probeType = sys.argv[1]
@ -24,6 +24,6 @@ if __name__ == "__main__":
hostname = sys.argv[3]
host_ip = sys.argv[4]
Api = ZabbixApi(hostname, server_ip, 'admin', 'zabbix')
Api = zabbixApi.ZabbixApi(hostname, server_ip, 'admin', 'zabbix')
Api.addProbe(probeType, host_ip)