mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Merge pull request #1257 from chef/chris-rock/inetd-exec
overwrite exec for inetd because respec its is executing `exec`
This commit is contained in:
commit
9f7216ce26
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ module Inspec::Resources
|
|||
@conf_path = path || '/etc/inetd.conf'
|
||||
end
|
||||
|
||||
# overwrite exec to ensure it works with its
|
||||
# TODO: this needs to be fixed in RSpec
|
||||
def exec
|
||||
read_params['exec']
|
||||
end
|
||||
|
||||
def method_missing(name)
|
||||
read_params[name.to_s]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue