Skip to content

Commit

Permalink
VR: fix health check error due to deprecated SafeConfigParser
Browse files Browse the repository at this point in the history
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()
```
  • Loading branch information
weizhouapache committed Feb 12, 2024
1 parent fbb2ce5 commit 1a640be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemvm/debian/root/monitorServices.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

from configparser import SafeConfigParser
from configparser import ConfigParser
from subprocess import *
from datetime import datetime
import time
Expand Down Expand Up @@ -56,7 +56,7 @@ def getServicesConfig( config_file_path = "/etc/monitor.conf" ):
"""
process_dict = {}
parser = SafeConfigParser()
parser = ConfigParser()
parser.read( config_file_path )


Expand Down

0 comments on commit 1a640be

Please sign in to comment.