Skip to content

Commit

Permalink
style: enforce style guides
Browse files Browse the repository at this point in the history
Signed-off-by: Xabier Napal <[email protected]>
  • Loading branch information
xabinapal committed Dec 24, 2024
1 parent 37021d8 commit ae422c0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion netbox/custom_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var customFieldsSchemaRead = &schema.Schema{
Type: schema.TypeMap,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
Type: schema.TypeString,
},
}

Expand Down
2 changes: 1 addition & 1 deletion netbox/data_source_netbox_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func dataSourceNetboxCluster() *schema.Resource {
Optional: true,
},
customFieldsKey: customFieldsSchemaRead,
tagsKey: tagsSchemaRead,
tagsKey: tagsSchemaRead,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_source_netbox_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ for more information on available lookup expressions.`,
Computed: true,
},
customFieldsKey: customFieldsSchemaRead,
tagsKey: tagsSchemaRead,
tagsKey: tagsSchemaRead,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_source_netbox_racks.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func dataSourceNetboxRacks() *schema.Resource {
Computed: true,
},
customFieldsKey: customFieldsSchemaRead,
tagsKey: tagsSchemaRead,
tagsKey: tagsSchemaRead,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_available_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func resourceNetboxAvailablePrefix() *schema.Resource {
Optional: true,
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
Importer: &schema.ResourceImporter{
StateContext: func(c context.Context, rd *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func resourceNetboxDevice() *schema.Resource {
Description: "This is best managed through the use of `jsonencode` and a map of settings.",
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_ip_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func resourceNetboxIPAddress() *schema.Resource {
},
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Each location must have a name that is unique within its parent site and locatio
Optional: true,
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_rack.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Each rack is assigned a name and (optionally) a separate facility ID. This is he
Optional: true,
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func resourceNetboxService() *schema.Resource {
ExactlyOneOf: []string{"virtual_machine_id", "device_id"},
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_site.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func resourceNetboxSite() *schema.Resource {
},
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down
2 changes: 1 addition & 1 deletion netbox/resource_netbox_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func resourceNetboxVirtualMachine() *schema.Resource {
Description: "This is best managed through the use of `jsonencode` and a map of settings.",
},
customFieldsKey: customFieldsSchema,
tagsKey: tagsSchema,
tagsKey: tagsSchema,
},
CustomizeDiff: customFieldsDiff,
Importer: &schema.ResourceImporter{
Expand Down

0 comments on commit ae422c0

Please sign in to comment.