"microovn certificates reissue" does not check for required arguments

Bug #2074365 reported by Martin Kalcok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
microovn
In Progress
Low
Ismail Kayi

Bug Description

This is a minor issue, but implementation of `microovn certificates reissue` command [0] does not properly check if at least one argument was supplied and exits with:

Error: accepts 1 arg(s), received 0

Other commands in this scenario defer to running cmd.Help() [1]

[0]https://github.com/canonical/microovn/blob/994eb5e4490274e1a4b5c03725d8ba1905f92c90/microovn/cmd/microovn/certificates_reissue.go#L47
[1] https://github.com/canonical/microovn/blob/59eea7b501d2c7ce3f012e940300bdfd58d9f169/microovn/cmd/microovn/cluster_join.go#L29-L31

Changed in microovn:
status: New → Triaged
importance: Undecided → Low
description: updated
Ismail Kayi (ismailkayi)
Changed in microovn:
assignee: nobody → Ismail Kayi (ismailkayi)
Ismail Kayi (ismailkayi)
Changed in microovn:
status: Triaged → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.