provider/triton: Import triton_vlan resources

This commit is contained in:
James Nugent 2016-05-04 19:30:01 -05:00 committed by Mitchell Hashimoto
parent 655bb4b286
commit 03fe5a7467
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,9 @@ func resourceVLAN() *schema.Resource {
Read: resourceVLANRead,
Update: resourceVLANUpdate,
Delete: resourceVLANDelete,
Importer: &schema.ResourceImporter{
State: resourceVLANImporter,
},
Schema: map[string]*schema.Schema{
"vlan_id": {
@ -130,3 +133,7 @@ func resourceVLANIDInt16(id string) (int16, error) {
return int16(result), nil
}
func resourceVLANImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
return []*schema.ResourceData{d}, nil
}