Skip to content

Commit ced10c1

Browse files
committed
cmd: fix delete vm
1 parent cc90a46 commit ced10c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/cli/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// deleteCmd represents the delete command
1414
var deleteCmd = &cobra.Command{
15-
Use: "delete <resource-type> <name>",
15+
Use: "delete <resource-type> <name> | delete -f <yaml>",
1616
Short: "Delete a CloudStack resource",
1717
Long: `Delete a resource managed by cloudstackctl (Application/Component/VirtualMachine/etc.)`,
1818
Run: func(cmd *cobra.Command, args []string) {
@@ -73,7 +73,7 @@ var deleteCmd = &cobra.Command{
7373
log.Fatal("Usage: cloudstackctl delete <resource-type> <name>")
7474
}
7575

76-
resourceType = args[0]
76+
resourceType = normalizeResourceType(args[0])
7777
name = args[1]
7878

7979
payload := map[string]string{"kind": resourceType, "name": name}

0 commit comments

Comments
 (0)