Announcement

Collapse
No announcement yet.

YAMLLoadWarning: calling yaml.load() without Loader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • YAMLLoadWarning: calling yaml.load() without Loader

    I have a CentOS/CL8 system

    After a recent Imunify update, I started receiving emails containing the following content. They come through every 5 minutes. Any suggestions on correcting this?

    Code:
    /usr/share/imunify360-webshield/webshield-watchdog:75: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read [URL]https://msg.pyyaml.org/load[/URL] for full details.
    
    parsed_config = yaml.load(f)

  • #2
    Hi,

    We are planning to fix this issue in the Imunify360 ver 5.5.3 - the internal task id is DEF-15704
    Stay tuned to our blog at https://blog.imunify360.com for updates.

    Comment


    • #3
      Is there any way to disable email notifications for the time being, so they’ll start back up after the fix?

      …actually, I noticed that only 1 of my 4 servers is creating this notification. It happens to be the only one using CL8, but is it possibly a Python version I can simply remove from installation?

      ##
      Side note: I cannot seem to login to this forum via mobile. I’ve tried several times. It shows all signs of logging in, but kicks me back to not being logged in.

      Comment


      • #4
        Hi,

        In order to avoid the warning and notifications, please change the yaml.load function to the yaml.safe_load one:

        Code:
        cp -p /usr/share/imunify360-webshield/webshield-watchdog{,.backup}
        
        sed -i s/yaml.load/yaml.safe_load/g /usr/share/imunify360-webshield/webshield-watchdog
        After that, make sure the issue no longer occurs:

        Code:
        /usr/share/imunify360-webshield/webshield-watchdog

        Comment

        Working...
        X