Skip to content

Commit

Permalink
Go 1.11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jan 8, 2019
1 parent bbdc5dd commit 15811dd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions openstack/data_source_openstack_networking_port_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,130 +16,130 @@ func dataSourceNetworkingPortV2() *schema.Resource {
Read: dataSourceNetworkingPortV2Read,

Schema: map[string]*schema.Schema{
"region": &schema.Schema{
"region": {
Type: schema.TypeString,
Optional: true,
},

"port_id": &schema.Schema{
"port_id": {
Type: schema.TypeString,
Optional: true,
},

"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Optional: true,
},

"description": &schema.Schema{
"description": {
Type: schema.TypeString,
Optional: true,
},

"admin_state_up": &schema.Schema{
"admin_state_up": {
Type: schema.TypeBool,
Optional: true,
},

"network_id": &schema.Schema{
"network_id": {
Type: schema.TypeString,
Optional: true,
},

"tenant_id": &schema.Schema{
"tenant_id": {
Type: schema.TypeString,
Optional: true,
},

"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeString,
Optional: true,
},

"device_owner": &schema.Schema{
"device_owner": {
Type: schema.TypeString,
Optional: true,
},

"mac_address": &schema.Schema{
"mac_address": {
Type: schema.TypeString,
Optional: true,
},

"device_id": &schema.Schema{
"device_id": {
Type: schema.TypeString,
Optional: true,
},

"fixed_ip": &schema.Schema{
"fixed_ip": {
Type: schema.TypeString,
Optional: true,
},

"security_group_ids": &schema.Schema{
"security_group_ids": {
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},

"tags": &schema.Schema{
"tags": {
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
},

"allowed_address_pairs": &schema.Schema{
"allowed_address_pairs": {
Type: schema.TypeSet,
Computed: true,
Set: allowedAddressPairsHash,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"ip_address": &schema.Schema{
"ip_address": {
Type: schema.TypeString,
Computed: true,
},
"mac_address": &schema.Schema{
"mac_address": {
Type: schema.TypeString,
Computed: true,
},
},
},
},

"all_fixed_ips": &schema.Schema{
"all_fixed_ips": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},

"all_security_group_ids": &schema.Schema{
"all_security_group_ids": {
Type: schema.TypeSet,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},

"all_tags": &schema.Schema{
"all_tags": {
Type: schema.TypeSet,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},

"extra_dhcp_option": &schema.Schema{
"extra_dhcp_option": {
Type: schema.TypeSet,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
},
"value": &schema.Schema{
"value": {
Type: schema.TypeString,
Computed: true,
},
"ip_version": &schema.Schema{
"ip_version": {
Type: schema.TypeInt,
Computed: true,
},
Expand Down
2 changes: 1 addition & 1 deletion openstack/data_source_openstack_networking_port_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestAccNetworkingV2PortDataSource_basic(t *testing.T) {
Providers: testAccProviders,
CheckDestroy: testAccCheckNetworkingV2PortDestroy,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccNetworkingV2PortDataSource_basic,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair(
Expand Down

0 comments on commit 15811dd

Please sign in to comment.