Группа :: Мониторинг
Пакет: 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