Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37804940
en ru br
Репозитории ALT

Группа :: Мониторинг
Пакет: nagios-plugins-smartmon

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: port-to-python3.patch
Скачать


diff --git a/nagios-plugins-smartmon/bin/check_smartmon b/nagios-plugins-smartmon/bin/check_smartmon
index 3ee362a..227c56b 100755
--- a/nagios-plugins-smartmon/bin/check_smartmon
+++ b/nagios-plugins-smartmon/bin/check_smartmon
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #
 # check_smartmon - script for analyze and parsing smartctl output
@@ -211,7 +211,7 @@ def createReturnInfo(healthStatus, temperature, warningThreshold,
 def exitWithMessage(value, message):
 	"""Exit with given value and status message."""
 
-	print message
+	print(message)
 	sys.exit(value)
 # end
 
@@ -224,7 +224,7 @@ def vprint(level, message):
 	"""
 
 	if level <= verbosity:
-		print message
+		print(message)
 	# fi
 # end
 
-- 
2.25.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin