Skip to content

Commit 2474f68

Browse files
authored
feat: fix_po_secondary (#971)
feat: fix_po_secondary
1 parent d6be488 commit 2474f68

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

equinix/resource_network_device.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,6 @@ func flattenNetworkDeviceSecondary(device *ne.Device) interface{} {
15491549
transformed[neDeviceSchemaNames["SSHIPAddress"]] = device.SSHIPAddress
15501550
transformed[neDeviceSchemaNames["SSHIPFqdn"]] = device.SSHIPFqdn
15511551
transformed[neDeviceSchemaNames["AccountNumber"]] = device.AccountNumber
1552-
transformed[neDeviceSchemaNames["PurchaseOrderNumber"]] = device.PurchaseOrderNumber
15531552
transformed[neDeviceSchemaNames["Notifications"]] = device.Notifications
15541553
transformed[neDeviceSchemaNames["RedundancyType"]] = device.RedundancyType
15551554
transformed[neDeviceSchemaNames["ProjectID"]] = device.ProjectID

equinix/resource_network_device_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ func TestNetworkDevice_flattenSecondary(t *testing.T) {
275275
SSHIPAddress: ne.String("1.1.1.1"),
276276
SSHIPFqdn: ne.String("test-1.1.1.1-SV.test.equinix.com"),
277277
AccountNumber: ne.String("123456"),
278-
PurchaseOrderNumber: ne.String("1234567890"),
279278
WanInterfaceId: ne.String("5"),
280279
Notifications: []string{"[email protected]"},
281280
RedundancyType: ne.String("PRIMARY"),
@@ -323,7 +322,6 @@ func TestNetworkDevice_flattenSecondary(t *testing.T) {
323322
neDeviceSchemaNames["SSHIPAddress"]: input.SSHIPAddress,
324323
neDeviceSchemaNames["SSHIPFqdn"]: input.SSHIPFqdn,
325324
neDeviceSchemaNames["AccountNumber"]: input.AccountNumber,
326-
neDeviceSchemaNames["PurchaseOrderNumber"]: input.PurchaseOrderNumber,
327325
neDeviceSchemaNames["Notifications"]: input.Notifications,
328326
neDeviceSchemaNames["RedundancyType"]: input.RedundancyType,
329327
neDeviceSchemaNames["RedundantUUID"]: input.RedundantUUID,
@@ -373,7 +371,6 @@ func TestNetworkDevice_expandSecondary(t *testing.T) {
373371
neDeviceSchemaNames["Name"]: "device",
374372
neDeviceSchemaNames["MetroCode"]: "SV",
375373
neDeviceSchemaNames["HostName"]: "SV5",
376-
neDeviceSchemaNames["PurchaseOrderNumber"]: "PO123",
377374
neDeviceSchemaNames["WanInterfaceId"]: "5",
378375
neDeviceSchemaNames["Tier"]: 1,
379376
neDeviceSchemaNames["LicenseToken"]: "sWf3df4gaAvbbexw45ga4f",
@@ -397,7 +394,6 @@ func TestNetworkDevice_expandSecondary(t *testing.T) {
397394
UUID: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["UUID"]].(string)),
398395
Name: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["Name"]].(string)),
399396
MetroCode: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["MetroCode"]].(string)),
400-
PurchaseOrderNumber: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["PurchaseOrderNumber"]].(string)),
401397
WanInterfaceId: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["WanInterfaceId"]].(string)),
402398
HostName: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["HostName"]].(string)),
403399
LicenseToken: ne.String(input[0].(map[string]interface{})[neDeviceSchemaNames["LicenseToken"]].(string)),

0 commit comments

Comments
 (0)