Skip to content

Commit

Permalink
Add-on systems roles are added at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 9, 2017
1 parent 37c33d4 commit a35cea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/control/src/modules/ProductControl.rb
Expand Up @@ -1615,7 +1615,7 @@ def ResetAdditionalWorkflowParams
# @return [Array<Hash>] All existing roles after adding the new roles
def add_system_roles(new_roles)
log.info "Adding roles to product control: #{new_roles.inspect}"
system_roles.unshift(*new_roles)
system_roles.concat(new_roles)
end

publish variable: :productControl, type: "map"
Expand Down
2 changes: 1 addition & 1 deletion library/control/test/workflow_manager_test.rb
Expand Up @@ -225,7 +225,7 @@

it "add system roles at the beginning" do
subject.update_system_roles(system_roles)
expect(Yast::ProductControl.system_roles).to eq([additional_role1, default_role])
expect(Yast::ProductControl.system_roles).to eq([default_role1, additional_role])
end
end

Expand Down

0 comments on commit a35cea4

Please sign in to comment.