providers/aws: eip uses passthrough importstate
This commit is contained in:
parent
b7d4767dd6
commit
420e13d2f2
|
@ -20,7 +20,7 @@ func resourceAwsEip() *schema.Resource {
|
||||||
Update: resourceAwsEipUpdate,
|
Update: resourceAwsEipUpdate,
|
||||||
Delete: resourceAwsEipDelete,
|
Delete: resourceAwsEipDelete,
|
||||||
Importer: &schema.ResourceImporter{
|
Importer: &schema.ResourceImporter{
|
||||||
State: resourceAwsEipImportState,
|
State: schema.ImportStatePassthrough,
|
||||||
},
|
},
|
||||||
|
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
|
@ -292,12 +292,6 @@ func resourceAwsEipDelete(d *schema.ResourceData, meta interface{}) error {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func resourceAwsEipImportState(
|
|
||||||
d *schema.ResourceData,
|
|
||||||
meta interface{}) ([]*schema.ResourceData, error) {
|
|
||||||
return []*schema.ResourceData{d}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func resourceAwsEipDomain(d *schema.ResourceData) string {
|
func resourceAwsEipDomain(d *schema.ResourceData) string {
|
||||||
if v, ok := d.GetOk("domain"); ok {
|
if v, ok := d.GetOk("domain"); ok {
|
||||||
return v.(string)
|
return v.(string)
|
||||||
|
|
Loading…
Reference in New Issue