Skip to content

Commit

Permalink
provider/triton: Import triton_machine resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jen20 authored and mitchellh committed May 11, 2016
1 parent 7c7dd22 commit 7d53e65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resource_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func resourceMachine() *schema.Resource {
Read: resourceMachineRead,
Update: resourceMachineUpdate,
Delete: resourceMachineDelete,
Importer: &schema.ResourceImporter{
State: resourceMachineImporter,
},

Schema: map[string]*schema.Schema{
"name": {
Expand Down Expand Up @@ -568,3 +571,7 @@ func resourceMachineValidateName(value interface{}, name string) (warnings []str

return warnings, errors
}

func resourceMachineImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
return []*schema.ResourceData{d}, nil
}

0 comments on commit 7d53e65

Please sign in to comment.