Skip to content

Commit abe6d43

Browse files
committed
Fixing typo
Signed-off-by: Arun Tony <[email protected]>
1 parent 7d776b7 commit abe6d43

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

nsxt/resource_nsxt_policy_segment_port_profile_bindings.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func policySegmentPortProfileBindingsResourceToInfraStruct(segmentPort model.Seg
192192
// Segment
193193
child, err := vAPIConversion(childSegmentPort, model.ChildSegmentPortBindingType())
194194
if err != nil {
195-
return model.Infra{}, fmt.Errorf("Error handling the SegmentPort hierarchial API construction : %v", err)
195+
return model.Infra{}, fmt.Errorf("Error handling the SegmentPort hierarchical API construction : %v", err)
196196
}
197197
segmentChildren := []*data.StructValue{child}
198198
segmentId := getSegmentIdFromSegPath(segmentPath)
@@ -207,7 +207,7 @@ func policySegmentPortProfileBindingsResourceToInfraStruct(segmentPort model.Seg
207207
// Tier1
208208
child, err = vAPIConversion(childSegment, model.ChildResourceReferenceBindingType())
209209
if err != nil {
210-
return model.Infra{}, fmt.Errorf("Error handling the Tier1 gw hierarchial API construction : %v", err)
210+
return model.Infra{}, fmt.Errorf("Error handling the Tier1 gw hierarchical API construction : %v", err)
211211
}
212212
if isT1Segment(segmentPath) {
213213
t1Children := []*data.StructValue{child}
@@ -222,7 +222,7 @@ func policySegmentPortProfileBindingsResourceToInfraStruct(segmentPort model.Seg
222222

223223
child, err = vAPIConversion(childTier1Gw, model.ChildResourceReferenceBindingType())
224224
if err != nil {
225-
return model.Infra{}, fmt.Errorf("Error handling the Infra hierarchial API construction : %v", err)
225+
return model.Infra{}, fmt.Errorf("Error handling the Infra hierarchical API construction : %v", err)
226226
}
227227
}
228228
// Infra

nsxt/segment_port_common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func policySegmentPortResourceToInfraStruct(id string, d *schema.ResourceData, i
5252
// Segment
5353
child, err := vAPIConversion(childSegmentPort, model.ChildSegmentPortBindingType())
5454
if err != nil {
55-
return model.Infra{}, fmt.Errorf("Error handling the SegmentPort hierarchial API construction : %v", err)
55+
return model.Infra{}, fmt.Errorf("Error handling the SegmentPort hierarchical API construction : %v", err)
5656
}
5757
segmentChildren := []*data.StructValue{child}
5858
segmentId := getSegmentIdFromSegPath(segmentPath)
@@ -67,7 +67,7 @@ func policySegmentPortResourceToInfraStruct(id string, d *schema.ResourceData, i
6767
// Tier1
6868
child, err = vAPIConversion(childSegment, model.ChildResourceReferenceBindingType())
6969
if err != nil {
70-
return model.Infra{}, fmt.Errorf("Error handling the Tier1 gw hierarchial API construction : %v", err)
70+
return model.Infra{}, fmt.Errorf("Error handling the Tier1 gw hierarchical API construction : %v", err)
7171
}
7272
if isT1Segment(segmentPath) {
7373
t1Children := []*data.StructValue{child}
@@ -82,7 +82,7 @@ func policySegmentPortResourceToInfraStruct(id string, d *schema.ResourceData, i
8282

8383
child, err = vAPIConversion(childTier1Gw, model.ChildResourceReferenceBindingType())
8484
if err != nil {
85-
return model.Infra{}, fmt.Errorf("Error handling the Infra hierarchial API construction : %v", err)
85+
return model.Infra{}, fmt.Errorf("Error handling the Infra hierarchical API construction : %v", err)
8686
}
8787
}
8888
// Infra

0 commit comments

Comments
 (0)