File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 11package ipaddress
22
33import (
4- "errors"
54 "fmt"
65
76 "github.com/UpCloudLtd/upcloud-cli/internal/commands"
@@ -47,9 +46,6 @@ func (s *modifyCommand) MaximumExecutions() int {
4746
4847// Execute implements commands.MultipleArgumentCommand
4948func (s * modifyCommand ) Execute (exec commands.Executor , arg string ) (output.Output , error ) {
50- if arg == "" {
51- return nil , errors .New ("need ip address to modify" )
52- }
5349 msg := fmt .Sprintf ("Modifying ip-address %v" , arg )
5450 logline := exec .NewLogEntry (msg )
5551
Original file line number Diff line number Diff line change @@ -55,10 +55,6 @@ type fwProto struct {
5555
5656// Execute implements commands.MultipleArgumentCommand
5757func (s * showCommand ) Execute (exec commands.Executor , arg string ) (output.Output , error ) {
58- // TODO(aakso): implement prompting with readline support
59- if arg == "" {
60- return nil , fmt .Errorf ("one server hostname, title or uuid is required" )
61- }
6258 // get rules and server details in parallel
6359 var wg sync.WaitGroup
6460 var rules * upcloud.FirewallRules
You can’t perform that action at this time.
0 commit comments