Skip to content

Commit

Permalink
Set back patch for DeleteOnVmDeletion
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Nov 9, 2022
1 parent 6c263a4 commit 35c2339
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .osc-patches/22-11-09-DeleteOnVmDeletion.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 13e02250cdbe94fd8c67d3895759b9e1185e550b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Jutteau?= <[email protected]>
Date: Wed, 9 Nov 2022 12:22:12 +0100
Subject: [PATCH] Set back patch for DeleteOnVmDeletion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jérôme Jutteau <[email protected]>
---
osc/model_bsu_to_create.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/osc/model_bsu_to_create.go b/osc/model_bsu_to_create.go
index 568214a6..498e3cb9 100644
--- a/osc/model_bsu_to_create.go
+++ b/osc/model_bsu_to_create.go
@@ -13,7 +13,7 @@ package osc
// BsuToCreate Information about the BSU volume to create.
type BsuToCreate struct {
// By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- DeleteOnVmDeletion bool `json:"DeleteOnVmDeletion,omitempty"`
+ DeleteOnVmDeletion bool `json:"DeleteOnVmDeletion"`
// The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000` with a maximum performance ratio of 300 IOPS per gibibyte.
Iops int32 `json:"Iops,omitempty"`
// The ID of the snapshot used to create the volume.
--
2.37.2

2 changes: 1 addition & 1 deletion osc/model_bsu_to_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package osc
// BsuToCreate Information about the BSU volume to create.
type BsuToCreate struct {
// By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
DeleteOnVmDeletion bool `json:"DeleteOnVmDeletion,omitempty"`
DeleteOnVmDeletion bool `json:"DeleteOnVmDeletion"`
// The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000` with a maximum performance ratio of 300 IOPS per gibibyte.
Iops int32 `json:"Iops,omitempty"`
// The ID of the snapshot used to create the volume.
Expand Down

0 comments on commit 35c2339

Please sign in to comment.