Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix additional fields regression in HiveD config (#4878) (#4882)
Browse files Browse the repository at this point in the history
Fix additional fields regression issue in HiveD config on
webportal submission form.
  • Loading branch information
abuccts authored Sep 9, 2020
1 parent d65f091 commit bddcd87
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/webportal/src/app/job-submission/models/job-protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,17 @@ export class JobProtocol {
jobTaskRoles,
);
if (config.launcherScheduler === 'hivedscheduler') {
protocolExtras.hivedScheduler = { taskRoles: hivedTaskRoles };
const newTaskRoles = get(protocolExtras, 'hivedScheduler.taskRoles', {});
for (const name in hivedTaskRoles) {
newTaskRoles[name] = {
...newTaskRoles[name],
...hivedTaskRoles[name],
};
}
protocolExtras.hivedScheduler = {
...protocolExtras.hivedScheduler,
taskRoles: newTaskRoles,
};
}
const secrets = removeEmptyProperties(
jobSecrets.reduce((res, secret) => {
Expand Down

0 comments on commit bddcd87

Please sign in to comment.