Skip to content

Commit

Permalink
Update command/exportedservices/exported_services.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com>
  • Loading branch information
tauhid621 and absolutelightning committed Jan 25, 2024
1 parent 3aa9612 commit 4e65f12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion command/exportedservices/exported_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ func getSupportedFormats() []string {
}

func formatIsValid(f string) bool {
return f == PrettyFormat || f == JSONFormat
for _, format := range getSupportedFormats() {
if f == format {
return true
}
}
return false

}

func New(ui cli.Ui) *cmd {
Expand Down

0 comments on commit 4e65f12

Please sign in to comment.