mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
fixing issue with adhoc stdout
the adhoc stdout was subscribing to job_events instead of ad_hoc_command_events
This commit is contained in:
@@ -2,7 +2,6 @@ export default function($stateProvider) {
|
|||||||
this.$get = function() {
|
this.$get = function() {
|
||||||
return {
|
return {
|
||||||
addSocket: function(state){
|
addSocket: function(state){
|
||||||
// var resolve = state.resolve || {};
|
|
||||||
if(!state.resolve){
|
if(!state.resolve){
|
||||||
state.resolve = {};
|
state.resolve = {};
|
||||||
}
|
}
|
||||||
@@ -18,7 +17,7 @@ export default function($stateProvider) {
|
|||||||
state.socket.groups.job_events = [$stateParams.id];
|
state.socket.groups.job_events = [$stateParams.id];
|
||||||
}
|
}
|
||||||
if(state.socket.groups.hasOwnProperty( "ad_hoc_command_events")){
|
if(state.socket.groups.hasOwnProperty( "ad_hoc_command_events")){
|
||||||
state.socket.groups.job_events = [$stateParams.id];
|
state.socket.groups.ad_hoc_command_events = [$stateParams.id];
|
||||||
}
|
}
|
||||||
SocketService.subscribe(state);
|
SocketService.subscribe(state);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user