Skip to content

Commit

Permalink
fix: don't redact ls_systemd_units to avoid issue#3858 (#3870)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangce Liu <[email protected]>
  • Loading branch information
xiangce authored Aug 3, 2023
1 parent 2e8b122 commit 0c47aef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion insights/client/data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ def redact(self, rm_conf):
'etc/insights-client/machine-id',
'etc/insights-client/.exp.sed', # INSPEC-414
'etc/machine-id',
'insights_commands/subscription-manager_identity'
'insights_commands/subscription-manager_identity',
'insights_commands/ls_-lanRL_.etc.systemd_.run.systemd_.usr.lib.systemd_.usr.local.lib.systemd_.usr.local.share.systemd_.usr.share.systemd', # issue #3858
)
)):
# do not redact the ID files
Expand Down
5 changes: 4 additions & 1 deletion insights/specs/insights_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ class InsightsArchiveSpecs(Specs):
ls_osroot = simple_file("insights_commands/ls_-lan")
ls_R_var_lib_nova_instances = simple_file("insights_commands/ls_-laR_.var.lib.nova.instances")
ls_sys_firmware = simple_file("insights_commands/ls_-lanR_.sys.firmware")
ls_systemd_units = simple_file("insights_commands/ls_-lanRL_.etc.systemd_.run.systemd_.usr.lib.systemd_.usr.local.lib.systemd")
ls_systemd_units = first_file([
"insights_commands/ls_-lanRL_.etc.systemd_.run.systemd_.usr.lib.systemd_.usr.local.lib.systemd_.usr.local.share.systemd_.usr.share.systemd",
"insights_commands/ls_-lanRL_.etc.systemd_.run.systemd_.usr.lib.systemd_.usr.local.lib.systemd"
])
ls_tmp = simple_file("insights_commands/ls_-la_.tmp")
ls_usr_bin = simple_file("insights_commands/ls_-lan_.usr.bin")
ls_usr_lib64 = simple_file("insights_commands/ls_-lan_.usr.lib64")
Expand Down

0 comments on commit 0c47aef

Please sign in to comment.