jenssegers / jenssegers/chef-patch

resource always changed

Open
#16 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
20
Forks
12
PR merge metrics
No merged PRs in 30d

Description

if I use

```
replace_line "#{pg_etc}/postgresql.conf" do
replace /^[#]*listen_addresses.*/
with "listen_addresses = '*'"
end
```

chef always tells me that something has changed:

![image](https://cloud.githubusercontent.com/assets/198502/12373821/d40857fa-bc87-11e5-9614-739b32750252.png)

Would it be possible to mark the file as unchanged when no change has happened because the "with" is already there or would I have to use a more complicated "replace" regexp

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.