provider/triton: Import triton_machine resources
This commit is contained in:
parent
03fe5a7467
commit
bf8d788489
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue