Chef

user provider mistakenly attempts to modify the user even if no changes are required

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.5.1, 0.5.2
  • Fix Version/s: 0.5.4
  • Component/s: Chef Client, Chef Solo
  • Labels:
    None

Description

Given the following recipe:

user "test" do
action :create
end

Works the first time, but the second time it attempts to copy

DEBUG: Processing user[test]
DEBUG: user[test] using Chef::Provider::User::Useradd
DEBUG: Nothing to read on 'usermod test' STDOUT, or 120 seconds exceeded.
DEBUG: ---- Begin usermod test STDERR ----
DEBUG: usermod: no flags given
DEBUG: ---- End usermod test STDERR ----
ERROR: user[test] (/var/chef/cache/cookbooks/junglist/recipes/default.rb line 26) had an error:
returned 2, expected 0

Activity

Hide
AJ Christensen added a comment - 10/Feb/09 10:59 PM
Show
AJ Christensen added a comment - 10/Feb/09 10:59 PM fixed, pull req sent http://github.com/fujin/chef/tree/chef-111
Hide
Adam Jacob added a comment - 11/Feb/09 12:23 AM

Integrated - thanks, AJ.

Show
Adam Jacob added a comment - 11/Feb/09 12:23 AM Integrated - thanks, AJ.

People

Vote (0)
Watch (0)

Dates

  • Created:
    10/Feb/09 4:23 AM
    Updated:
    11/Feb/09 12:23 AM
    Resolved:
    10/Feb/09 10:59 PM