Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkro committed Jul 20, 2018
1 parent 2fe745f commit 35faee6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
7 changes: 0 additions & 7 deletions app/javascript/react/screens/App/Plan/PlanActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ const _getOrchestrationStackActionCreator = (url, playbookScheduleType, task) =>
type: DOWNLOAD_LOG_COMPLETED,
payload: task.id
});
dispatch({
type: V2V_NOTIFICATION_ADD,
message: e.error.message,
notificationType: 'error',
persistent: true,
actionEnabled: false
});
reject(e);
})
)
Expand Down
4 changes: 1 addition & 3 deletions app/javascript/react/screens/App/Plan/PlanReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ const processVMTasks = vmTasks => {
options: {}
};

const hasPlaybookService = task.options.playbooks;

if (hasPlaybookService) {
if (task.options.playbooks) {
taskDetails.options.prePlaybookRunning =
task.options.playbooks.pre && task.options.playbooks.pre.job_state === 'active';
taskDetails.options.postPlaybookRunning =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class PlanRequestDetailList extends React.Component {
overlayTriggerClick = task => {
if (task.options.playbooks) {
const playbookStatuses = task.options.playbooks;
let runningPlaybook;
let runningPlaybook = null;

for (const scheduleType in playbookStatuses) {
if (playbookStatuses[scheduleType].job_state === 'active') {
Expand Down

0 comments on commit 35faee6

Please sign in to comment.