Skip to content

Commit

Permalink
Fix snapshot_attributes update
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericBerot-Armand committed Dec 9, 2022
1 parent 9d27ae7 commit 27e1c83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion outscale/resource_outscale_snapshot_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func resourcedOutscaleOAPISnapshotAttributes() *schema.Resource {
Create: resourcedOutscaleOAPISnapshotAttributesCreate,
Read: resourcedOutscaleOAPISnapshotAttributesRead,
Delete: resourcedOutscaleOAPISnapshotAttributesDelete,

Schema: map[string]*schema.Schema{
"permissions_to_create_volume_additions": {
Type: schema.TypeList,
Expand All @@ -29,10 +28,12 @@ func resourcedOutscaleOAPISnapshotAttributes() *schema.Resource {
"account_ids": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"global_permission": {
Type: schema.TypeBool,
ForceNew: true,
Optional: true,
},
},
Expand All @@ -47,11 +48,13 @@ func resourcedOutscaleOAPISnapshotAttributes() *schema.Resource {
"account_ids": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"global_permission": {
Type: schema.TypeBool,
Optional: true,
ForceNew: true,
},
},
},
Expand Down Expand Up @@ -151,6 +154,11 @@ func resourcedOutscaleOAPISnapshotAttributesCreate(d *schema.ResourceData, meta
return resourcedOutscaleOAPISnapshotAttributesRead(d, meta)
}

func resourceSnapshotAttributesUpdate(d *schema.ResourceData, meta interface{}) error {

return resourcedOutscaleOAPISnapshotAttributesRead(d, meta)
}

func resourcedOutscaleOAPISnapshotAttributesRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

Expand Down

0 comments on commit 27e1c83

Please sign in to comment.