Skip to content

Commit 2bef334

Browse files
committed
fix volumeid validation
1 parent d93f1bb commit 2bef334

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/cmd/volume/snapshot/create/create.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ func parseInput(p *print.Printer, cmd *cobra.Command) (*inputModel, error) {
134134
}
135135

136136
volumeID := flags.FlagToStringValue(p, cmd, volumeIdFlag)
137-
if volumeID == "" {
138-
return nil, fmt.Errorf("volume-id is required")
139-
}
140137

141138
name := flags.FlagToStringPointer(p, cmd, nameFlag)
142139
labels := flags.FlagToStringToStringPointer(p, cmd, labelsFlag)

0 commit comments

Comments
 (0)