Merge pull request #4565 from jlmitch5/fixAdhocCommandUndefinedError

fixes #4548
This commit is contained in:
jlmitch5
2017-01-03 15:30:52 -05:00
committed by GitHub

View File

@@ -46,6 +46,10 @@
}
function buildStatusIndicators(group){
if (group === undefined || group === null) {
group = {};
}
let group_status, hosts_status;
group_status = GetSyncStatusMsg({
@@ -142,10 +146,14 @@
$scope.$on(`ws-jobs`, function(e, data){
var group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
if (group === undefined || group === null) {
group = {};
}
if(data.status === 'failed' || data.status === 'successful'){
$state.reload();
}
else{
} else {
var status = GetSyncStatusMsg({
status: data.status,
has_inventory_sources: group.has_inventory_sources,