Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idfix #38

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ language: ruby
bundler_args: --without development integration
script: "bundle exec gem list && bundle exec rake spec"
rvm:
- 1.9.3
- 2.0.0
env:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion lib/puppet/provider/bmcuser/ipmitool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create
# get the user id supplied by the resource or find out the current user id
# if a user id cannot be found, try and create a new user id by looking for empty slots
def id
@id ||= @property_hash[:id] || user_id(resource[:username])
@id ||= @property_hash[:id] || @resource[:id] || user_id(resource[:username])
end

def destroy
Expand Down Expand Up @@ -114,6 +114,7 @@ def self.instances
# skip the header
next if line.match(/^ID/)
next if line.match(/Empty/i)
next if line.match(/^1/)
id, name, callin, linkauth, enabled, priv = line.chomp.split(' ', 6)
# create the resource
users << new(:name => name, :username => name, :id => id, :ensure => :present,
Expand Down