provider/triton: Import triton_machine resources

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

View File

@ -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": {
@ -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
}