Modify awk to use cut in check_ip_overlap
This patch replaces awk with cut to workaround issues present with running this script within ucp-dsinfo. Signed-off-by: Kyle Squizzato <kyle.squizzato@docker.com>
This commit is contained in:
parent
02c404b4dd
commit
6b782b4b82
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ function echo_and_run {
|
|||
|
||||
function check_ip_overlap {
|
||||
inspect=$1
|
||||
overlap=$(echo "$inspect_output" | grep "EndpointIP\|VIP" | awk -F ':' '{print $2}' | sort | uniq -c | grep -v "1 ")
|
||||
overlap=$(echo "$inspect_output" | grep "EndpointIP\|VIP" | cut -d':' -f2 | sort | uniq -c | grep -v "1 ")
|
||||
if [ ! -z "$overlap" ]; then
|
||||
echo -e "\n\n*** OVERLAP on Network ${networkID} ***";
|
||||
echo -e "${overlap} \n\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue