Skip to content

Commit 386ef1a

Browse files
committed
Add UT for pkg/nsx/util
Add UT for pkg/nsx/util
1 parent a2702f2 commit 386ef1a

File tree

2 files changed

+891
-15
lines changed

2 files changed

+891
-15
lines changed

pkg/nsx/util/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ func ParseVPCPath(nsxResourcePath string) (orgID string, projectID string, vpcID
311311
func DumpHttpRequest(request *http.Request) {
312312
var body []byte
313313
var err error
314+
if request == nil {
315+
return
316+
}
314317
if request.Body == nil {
315318
return
316319
}

0 commit comments

Comments
 (0)