Skip to content

Commit

Permalink
[pcp] collect pmlogger without a sizelimit
Browse files Browse the repository at this point in the history
sizelimit=None defaults to --log-size, use sizelimit=0 instead

Resolves: #1632

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
  • Loading branch information
pmoravec authored and bmr-cymru committed Apr 30, 2019
1 parent 2ebc04d commit 380737d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/plugins/pcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def setup(self):
pmlogger_ls = self.get_cmd_output_now("ls -t1 %s" % path)
if pmlogger_ls:
for line in open(pmlogger_ls).read().splitlines():
self.add_copy_spec(line, sizelimit=None)
self.add_copy_spec(line, sizelimit=0)
files_collected = files_collected + 1
if self.countlimit and files_collected == self.countlimit:
break
Expand Down

0 comments on commit 380737d

Please sign in to comment.