mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 12:39:22 -02:30
InstanceAdd sends null for port_listener
This commit is contained in:
committed by
Seth Foster
parent
449b95d1eb
commit
9c06370e33
@@ -9,6 +9,10 @@ function InstanceAdd() {
|
|||||||
const [formError, setFormError] = useState();
|
const [formError, setFormError] = useState();
|
||||||
const handleSubmit = async (values) => {
|
const handleSubmit = async (values) => {
|
||||||
try {
|
try {
|
||||||
|
if (values.listener_port === undefined) {
|
||||||
|
values.listener_port = null;
|
||||||
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data: { id },
|
data: { id },
|
||||||
} = await InstancesAPI.create(values);
|
} = await InstancesAPI.create(values);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect } from 'react';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { CardBody } from 'components/Card';
|
import { CardBody } from 'components/Card';
|
||||||
import PaginatedTable, {
|
import PaginatedTable, {
|
||||||
@@ -138,10 +138,7 @@ function InstanceEndPointList({ setBreadcrumb }) {
|
|||||||
isAllExpanded={isAllExpanded}
|
isAllExpanded={isAllExpanded}
|
||||||
onExpandAll={expandAll}
|
onExpandAll={expandAll}
|
||||||
qsConfig={QS_CONFIG}
|
qsConfig={QS_CONFIG}
|
||||||
additionalControls={
|
additionalControls={[]}
|
||||||
[
|
|
||||||
]
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
renderRow={(endpoint, index) => (
|
renderRow={(endpoint, index) => (
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ function InstancePeerList({ setBreadcrumb }) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(receptor.is_internal) {
|
if (receptor.is_internal) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user