Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
The Python project introduced new SyntaxWarnings in Python 3.8 to warn users against using 'is' and 'is not' keywords when comparing string literals, as this is an identity comparison when an equality comparison ('==' and '!=') is more likely the intended logic.
After this update in the Python project, and moving to Python 3.9 in AMBARI-26000 (see the change here to imply the target python version is 3.9), these SyntaxWarnings are exposed when running any ambari-server script commands, as well as within ambari-agent logs.
The fix is simply replacing the 'is' and 'is not' keywords with their equality equivalents.
Attachments
Attachments
Issue Links
- links to