Skip to content
Open
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
5 changes: 5 additions & 0 deletions lib/puppet/provider/websphere_shared_library/wsadmin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ def flush
return if @property_hash.empty?
cmd = <<-EOS
id = AdminConfig.getid(\"#{scope('query')}Library:#{resource[:name]}\")

# The modify command appends the specified unique classPath or nativePath values to the existing values.
# To completely replace the values, we must first remove the path attributes using the unsetAttributes command.
AdminConfig.unsetAttributes(id, '["classPath" "nativePath"]')

AdminConfig.modify(id, #{modified_attributes_list_list})
AdminConfig.save()
EOS
Expand Down