You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe parse_config_file('../yum.conf') do
its('main') { should include('gpgcheck' => '1') }
end
in our attempt to track down this bug, we found that the file is being parsed correctly, but gpgcheck is part of the hash under 'main'. A syntax like the above works...
What are people's thoughts?
Is that an ok syntax that just needs to be documented, or should we be doing something more/more specific for the yum.conf?
Description
The
parse_config_file
resource seems unable to handle lines that start with[
InSpec and Platform Version
0.19.3 on Mac OSX 10.11.4
Replication Case
Given this yum.conf and this InSpec test, the check fails with this output.
Possible Solutions
You can work around this by setting '[' as the comment character as shown in this updated InSpec check
The text was updated successfully, but these errors were encountered: