Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Fix panic from waypoint hostname delete with no hostname specified #1044

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cli/hostname_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func (c *HostnameDeleteCommand) Run(args []string) int {
return 1
}

hostname := c.args[0]
if len(c.args) == 0 {
c.ui.Output("hostname required for deletion", terminal.WithErrorStyle())
return 1
}
hostname := c.args[0]

_, err := c.project.Client().DeleteHostname(c.Ctx, &pb.DeleteHostnameRequest{
Hostname: hostname,
Expand Down