Skip to content

Commit d51a6cf

Browse files
committed
removed commented code
1 parent 2cd02a6 commit d51a6cf

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

cloudstack/resource_cloudstack_disk.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ func resourceCloudStackDiskCreate(d *schema.ResourceData, meta interface{}) erro
154154

155155
// Set deleteprotection using UpdateVolume
156156
if v, ok := d.GetOk("deleteprotection"); ok {
157-
// p_update := cs.Volume.NewUpdateVolumeParams()
158-
// p_update.SetDeleteprotection(v.(bool))
159157
p := cs.Volume.NewUpdateVolumeParams()
160158
p.SetId(d.Id())
161159
p.SetDeleteprotection(v.(bool))

cloudstack/resource_cloudstack_instance.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,6 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{})
486486

487487
// Set deleteprotection using UpdateVirtualMachine
488488
if v, ok := d.GetOk("deleteprotection"); ok {
489-
// p_update := cs.VirtualMachine.NewUpdateVirtualMachineParams(r.Id)
490-
// p_update.SetDeleteprotection(v.(bool))
491489
p := cs.VirtualMachine.NewUpdateVirtualMachineParams(d.Id())
492490
p.SetDeleteprotection(v.(bool))
493491

0 commit comments

Comments
 (0)