From 6be841fb76b9ac49b36d26f617f15d7e62ff06f5 Mon Sep 17 00:00:00 2001 From: Rafael Martinez Guerrero Date: Wed, 25 Mar 2015 19:36:15 +0100 Subject: [PATCH] Add import sys to zabbix-cli-init --- bin/zabbix-cli-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/zabbix-cli-init b/bin/zabbix-cli-init index c63af5db..b082c5a2 100755 --- a/bin/zabbix-cli-init +++ b/bin/zabbix-cli-init @@ -16,7 +16,7 @@ from os import getenv,path,remove,close,makedirs from tempfile import mkstemp from shutil import move, copy2 -from sys import exit +import sys def replace(file_path, pattern, subst): @@ -89,7 +89,7 @@ if __name__ == "__main__": print '\n[ERROR]: %s\n',e else: print "Cannot find /etc/zabbix-cli/zabbix-cli.conf file. ERROR with zabbix-cli installation." - exit(1) + sys.exit(1) # # changing the line having log configuration option