Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

chore: updates error msg in addpool cmd #4446

Merged
merged 1 commit into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
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 cmd/addpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (apc *addPoolCmd) validate(cmd *cobra.Command) error {

if apc.nodePoolPath == "" {
_ = cmd.Usage()
return errors.New("--nodepool must be specified")
return errors.New("--node-pool must be specified")
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/addpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestAddPoolCmdValidate(t *testing.T) {
location: "centralus",
resourceGroupName: "testRG",
},
expectedErr: errors.New("--nodepool must be specified"),
expectedErr: errors.New("--node-pool must be specified"),
name: "NoNodePool",
},
{
Expand Down