Skip to content

Commit

Permalink
Fix e2e run.sh network parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerhance committed Dec 20, 2019
1 parent 910d9ca commit 01a1808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/e2e-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for ATTEMPT in $(seq 60); do
sleep 1
done

NETWORK = NETWORK_INFO | sed 's+projects/.*/networks/++'
NETWORK=$(echo ${NETWORK_INFO} | sed 's+projects/.*/networks/++')

if [[ -z "${NETWORK}" ]]; then
echo "Error: could not parse network from network info"
Expand Down
6 changes: 2 additions & 4 deletions pkg/fuzz/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,8 @@ func GCLBForVIP(ctx context.Context, c cloud.Cloud, params *GCLBForVIPParams) (*
gclb := NewGCLB(params.VIP)

if params.Region != "" {
if err := RegionalGCLBForVIP(ctx, c, gclb, params); err != nil {
return nil, err
}
return gclb, nil
err := RegionalGCLBForVIP(ctx, c, gclb, params)
return gclb, err
}

allGFRs, err := c.GlobalForwardingRules().List(ctx, filter.None)
Expand Down

0 comments on commit 01a1808

Please sign in to comment.