Bugfix - sources format and ensure => absent fails#1243
Open
traylenator wants to merge 2 commits intopuppetlabs:mainfrom
Open
Bugfix - sources format and ensure => absent fails#1243traylenator wants to merge 2 commits intopuppetlabs:mainfrom
traylenator wants to merge 2 commits intopuppetlabs:mainfrom
Conversation
traylenator
added a commit
to traylenator/puppet-cvmfs
that referenced
this pull request
Aug 15, 2025
smortex
reviewed
Aug 18, 2025
cf4737b to
8ff6af5
Compare
8ff6af5 to
1aeeb69
Compare
Currently the following produces a compile error every time.
```puppet
apt::source{
ensure => absent,
source_format => sources,
}
```
```
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Apt::Setting[sources-my_source]: parameter 'content' expects a value of type Undef or String[1], got String (file: /home/steve/GIT/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 363) on node legion.lan
```
1aeeb69 to
d3b3594
Compare
smortex
approved these changes
Oct 6, 2025
Author
|
As a workaround which is reasonable, while apt::source{
ensure => absent,
source_format => sources,
}fails apt::source{
ensure => enabled,
source_format => sources,
enabled => false,
} achieves practically the same result. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apt::source{ ensure => absent, source_format => sources, }produces a compile error every time.