Skip to content

Commit

Permalink
[cloudlinux] Correct pylint encoding error
Browse files Browse the repository at this point in the history
Fixes pylint W1514, open without explicit encoding, that was re-enabled
after the policy PR was opened.

Signed-off-by: Jake Hunsaker <[email protected]>
  • Loading branch information
TurboTurtle committed Aug 15, 2024
1 parent ff464bd commit fc0aa56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/policies/distros/cloudlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def check(cls, remote=''):
return False

if os.path.exists(OS_RELEASE):
with open(OS_RELEASE, 'r') as f:
with open(OS_RELEASE, 'r', encoding='utf-8') as f:
for line in f:
if line.startswith('NAME'):
if 'CloudLinux' in line:
Expand Down

0 comments on commit fc0aa56

Please sign in to comment.