mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
link to container group from job runs
This commit is contained in:
parent
007f33c186
commit
b547a8c3ca
@ -135,7 +135,7 @@ SUMMARIZABLE_FK_FIELDS = {
|
||||
'source_script': ('name', 'description'),
|
||||
'role': ('id', 'role_field'),
|
||||
'notification_template': DEFAULT_SUMMARY_FIELDS,
|
||||
'instance_group': ('id', 'name', 'controller_id'),
|
||||
'instance_group': ('id', 'name', 'controller_id', 'is_containerized'),
|
||||
'insights_credential': DEFAULT_SUMMARY_FIELDS,
|
||||
'source_credential': DEFAULT_SUMMARY_FIELDS + ('kind', 'cloud', 'credential_type_id'),
|
||||
'target_credential': DEFAULT_SUMMARY_FIELDS + ('kind', 'cloud', 'credential_type_id'),
|
||||
|
||||
@ -553,12 +553,16 @@ function getInstanceGroupDetails () {
|
||||
return null;
|
||||
}
|
||||
|
||||
const label = strings.get('labels.INSTANCE_GROUP');
|
||||
const value = $filter('sanitize')(instanceGroup.name);
|
||||
const link = `/#/instance_groups/${instanceGroup.id}`;
|
||||
|
||||
let label = strings.get('labels.INSTANCE_GROUP');
|
||||
let link = `/#/instance_groups/${instanceGroup.id}`;
|
||||
if (instanceGroup.is_containerized) {
|
||||
label = strings.get('labels.CONTAINER_GROUP');
|
||||
link = `/#/instance_groups/container_group/edit/${instanceGroup.id}`;
|
||||
}
|
||||
|
||||
let isolated = null;
|
||||
|
||||
if (instanceGroup.is_isolated) {
|
||||
isolated = strings.get('details.ISOLATED');
|
||||
}
|
||||
|
||||
@ -63,6 +63,7 @@ function OutputStrings (BaseString) {
|
||||
FORKS: t.s('Forks'),
|
||||
HOST_LIMIT_ERROR: t.s('Host Limit Error'),
|
||||
INSTANCE_GROUP: t.s('Instance Group'),
|
||||
CONTAINER_GROUP: t.s('Container Group'),
|
||||
INVENTORY: t.s('Inventory'),
|
||||
INVENTORY_SCM: t.s('Source Project'),
|
||||
JOB_EXPLANATION: t.s('Explanation'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user