Skip to content

Commit

Permalink
[pylint] Fix redefined-builtin in maas plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Ponnuvel Palaniyappan <[email protected]>
  • Loading branch information
pponnuvel authored and TurboTurtle committed Aug 8, 2024
1 parent 992fda9 commit 938aff3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sos/report/plugins/maas.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ class MAAS(Plugin, UbuntuPlugin):
'snap.maas.pebble',
)

def _get_machines_syslog(self, dir):
if not self.path_exists(dir):
def _get_machines_syslog(self, directory):
if not self.path_exists(directory):
return []

# Machine messages are collected with syslog and are stored under:
# $template "{{log_dir}}/rsyslog/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%"
# Collect only the most recent "%$YEAR%-%$MONTH%-%$DAY%"
# for each "%HOSTNAME%".
recent = []
for host_dir in self.listdir(dir):
host_path = self.path_join(dir, host_dir)
for host_dir in self.listdir(directory):
host_path = self.path_join(directory, host_dir)
if not self.path_isdir(host_path):
continue

Expand Down

0 comments on commit 938aff3

Please sign in to comment.