mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
Merge pull request #4565 from jlmitch5/fixAdhocCommandUndefinedError
fixes #4548
This commit is contained in:
@@ -46,6 +46,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildStatusIndicators(group){
|
function buildStatusIndicators(group){
|
||||||
|
if (group === undefined || group === null) {
|
||||||
|
group = {};
|
||||||
|
}
|
||||||
|
|
||||||
let group_status, hosts_status;
|
let group_status, hosts_status;
|
||||||
|
|
||||||
group_status = GetSyncStatusMsg({
|
group_status = GetSyncStatusMsg({
|
||||||
@@ -142,10 +146,14 @@
|
|||||||
|
|
||||||
$scope.$on(`ws-jobs`, function(e, data){
|
$scope.$on(`ws-jobs`, function(e, data){
|
||||||
var group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
|
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'){
|
if(data.status === 'failed' || data.status === 'successful'){
|
||||||
$state.reload();
|
$state.reload();
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
var status = GetSyncStatusMsg({
|
var status = GetSyncStatusMsg({
|
||||||
status: data.status,
|
status: data.status,
|
||||||
has_inventory_sources: group.has_inventory_sources,
|
has_inventory_sources: group.has_inventory_sources,
|
||||||
|
|||||||
Reference in New Issue
Block a user