Skip to content

Commit 3c9ff48

Browse files
committed
fix linux_updates stdout issue
Signed-off-by: Rony Xavier <[email protected]>
1 parent 8c06cb2 commit 3c9ff48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/linux_updates.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ def updates
124124
#!/bin/sh
125125
python -c 'import sys; sys.path.insert(0, "/usr/share/yum-cli"); import cli; list = cli.YumBaseCli().returnPkgLists(["updates"]);res = ["{\\"name\\":\\""+x.name+"\\", \\"version\\":\\""+x.version+"-"+x.release+"\\",\\"arch\\":\\""+x.arch+"\\",\\"repository\\":\\""+x.repo.id+"\\"}" for x in list.updates]; print "{\\"available\\":["+",".join(res)+"]}"'
126126
EOH
127-
puts rhel_updates
127+
# puts rhel_updates
128128
cmd = @inspec.bash(rhel_updates)
129129
unless cmd.exit_status == 0
130130
# essentially we want https://github.com/chef/inspec/issues/1205
131-
STDERR.puts 'Could not determine patch status.'
131+
# STDERR.puts 'Could not determine patch status.'
132132
return nil
133133
end
134134

0 commit comments

Comments
 (0)