Skip to content

Commit 1a640be

Browse files
committed
VR: fix health check error due to deprecated SafeConfigParser
warning below ``` root@r-20-VM:~# /opt/cloud/bin/getRouterMonitorResults.sh true /root/monitorServices.py:59: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead. parser = SafeConfigParser() ```
1 parent fbb2ce5 commit 1a640be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systemvm/debian/root/monitorServices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
from configparser import SafeConfigParser
19+
from configparser import ConfigParser
2020
from subprocess import *
2121
from datetime import datetime
2222
import time
@@ -56,7 +56,7 @@ def getServicesConfig( config_file_path = "/etc/monitor.conf" ):
5656
5757
"""
5858
process_dict = {}
59-
parser = SafeConfigParser()
59+
parser = ConfigParser()
6060
parser.read( config_file_path )
6161

6262

0 commit comments

Comments
 (0)