provider/triton: import triton_firewall_rule

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

View File

@ -13,6 +13,9 @@ func resourceFirewallRule() *schema.Resource {
Read: resourceFirewallRuleRead,
Update: resourceFirewallRuleUpdate,
Delete: resourceFirewallRuleDelete,
Importer: &schema.ResourceImporter{
State: resourceFirewallRuleImporter,
},
Schema: map[string]*schema.Schema{
"rule": {
@ -103,3 +106,7 @@ func resourceFirewallRuleDelete(d *schema.ResourceData, meta interface{}) error
return nil
}
func resourceFirewallRuleImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
return []*schema.ResourceData{d}, nil
}