Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C: added to Puppet config setting path #759

Open
jfridgen opened this issue Jun 21, 2019 · 0 comments
Open

C: added to Puppet config setting path #759

jfridgen opened this issue Jun 21, 2019 · 0 comments

Comments

@jfridgen
Copy link

We're running rspec-puppet v2.7.2 via the Puppet PDK v1.9.0.0 and are running into an issue testing the following resource while running on Windows but pretending to be on Linux.

Puppet Resource Snippet:

$config = $settings::config

ini_setting { 'use_cached_catalog':
  ensure  => present,
  path    => $config,
  section => 'agent',
  setting => 'use_cached_catalog',
  value   => $use_cached_catalog,
}

Error:

Ini_setting[use_cached_catalog]: File paths must be fully qualified, not
        'c:/nul/puppet.conf'

We tried overriding the config in spec_helper.rb as follows:

RSpec.configure do |c|
  c.config = '/dummy'
end

But we received a similar error showing that C: is being prepended:

Ini_setting[use_cached_catalog]: File paths must be fully qualified, not
        'C:/dummy'

When we set the path in the ini_setting resource explicitly to /dummy, it works fine, so it seems like an issue prepending C: to the config Puppet setting.

Let me know if I can provide any additional information to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant