manage_serial in bind_primary_zone_template seems not working any longer
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 35
- Forks
- 44
- Avg merge
- 5h 29m
- Merged PRs (30d)
- 1
Description
if i use manage_serial true in bind_primary_zone_template and update record in that zone, the serial is not counting up any longer.
I guess you have revert the line
the correct(old) was:
persisted_values = node.normal['bind']['zone'][new_resource.file_name]
the incorrect (new) is:
persisted_values = node.default['bind']['zone'][new_resource.file_name]
according to https://docs.chef.io/attributes/
A
normalattribute is a setting that persists in the node object. Anormalattribute has a higher attribute precedence than adefaultattribute.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with resources/primary_zone_template.rb around line 59 and compare the persisted attribute lookup with the linked historical version. Reproduce an update to a zone record with manage_serial enabled, then confirm that the zone serial increments as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100