Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Component/s: apt
-
Labels:None
-
Environment:
chef 10.10
ubuntu precise
Description
On line 100 of the apt_repository LWRP
if repo_file.updated_by_last_action?
is nil.
This is because file#action_create sets updated_by_last_action(true) when the file is created but then updated_by_last_action(nil) because permissions do not change (enforce_ownership_and_permissions.rb line 34)
Using
if repo_file.updated?
works
Issue Links
- is duplicated by
-
COOK-1382
Trigger APT update immediately after adding a new repository
-
Pull request https://github.com/opscode/cookbooks/pull/405