Skip to content

Commit c03e5e2

Browse files
authored
Merge pull request #14 from coolguru/master
Remove puts from updates
2 parents 6ed522f + f983d53 commit c03e5e2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

libraries/linux_updates.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def updates
135135
#!/bin/sh
136136
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)+"]}"'
137137
EOH
138-
puts rhel_updates
139138
cmd = @inspec.bash(rhel_updates)
140139
unless cmd.exit_status == 0
141140
# essentially we want https://github.com/chef/inspec/issues/1205

0 commit comments

Comments
 (0)