Skip to content

[Bug]: SyntaxWarning when installing RPMS on RHEL 9.7 #69455

@z900collector

Description

@z900collector

What happened?

When upgrading using RPM packages a Syntax Warning appears as shown below, installation appears to work OK so may be a minor issue:

Upgrading        : salt-3006.25-0.x86_64                                                                1/4
Running scriptlet: salt-3006.25-0.x86_64                                                                1/4
Running scriptlet: salt-minion-3006.25-0.x86_64                                                         2/4
Upgrading        : salt-minion-3006.25-0.x86_64                                                         2/4
Running scriptlet: salt-minion-3006.25-0.x86_64                                                         2/4
Running scriptlet: salt-minion-3006.23-0.x86_64                                                         3/4
Cleanup          : salt-minion-3006.23-0.x86_64                                                         3/4
Running scriptlet: salt-minion-3006.23-0.x86_64                                                         3/4
Running scriptlet: salt-3006.23-0.x86_64                                                                4/4
Cleanup          : salt-3006.23-0.x86_64                                                                4/4
Running scriptlet: salt-3006.25-0.x86_64                                                                4/4
/opt/saltstack/salt/lib/python3.10/site-packages/linode/api.py:293: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if s['ERRORARRAY'][0]['ERRORCODE'] is not 0:
/opt/saltstack/salt/lib/python3.10/site-packages/linode/api.py:348: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(wrapper.__doc__.split('\n')) is 1:  # one-liners need whitespace
/opt/saltstack/salt/lib/python3.10/site-packages/linode/api.py:356: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(wrapper.__doc__.split('\n')) is 1:  # one-liners need whitespace

Running scriptlet: salt-minion-3006.25-0.x86_64                                                         4/4
Running scriptlet: salt-3006.23-0.x86_64                                                                4/4
Verifying        : salt-minion-3006.25-0.x86_64                                                         1/4
Verifying        : salt-minion-3006.23-0.x86_64                                                         2/4
Verifying        : salt-3006.25-0.x86_64                                                                3/4
Verifying        : salt-3006.23-0.x86_64                                                                4/4

Upgraded:
salt-3006.25-0.x86_64                              salt-minion-3006.25-0.x86_64

Complete!

Type of salt install

Official rpm

Major version

3006.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

oraclelinux-9

salt --versions-report output

# salt-minion --versions-report output
Salt Version:
          Salt: 3006.25

Python Version:
        Python: 3.10.20 (main, Apr 22 2026, 05:54:37) [GCC 11.2.0]

Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 46.0.7
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.12
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.23.0
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.8
         smmap: 5.0.2
       timelib: 0.3.0
       Tornado: 6.5.5
           ZMQ: 4.3.4

System Versions:
          dist: oracle 9.7
        locale: utf-8
       machine: x86_64
       release: 6.12.0-200.74.27.1.el9uek.x86_64
        system: Linux
       version: Oracle Linux Server 9.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions