Skip to content

Commit

Permalink
make swagger, fix archerctl default enable for services, fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
notandy committed Sep 19, 2023
1 parent 6198b28 commit 549879c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions internal/client/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type ServiceCreate struct {
Description string `long:"description" description:"Set service description"`
Provider *string `long:"provider" description:"Provider type" choice:"tenant" choice:"cp"`
Enable bool `long:"enable" description:"Enable service"`
Disable bool `long:"disable" description:"Disable service" optional-value:"false"`
Disable bool `long:"disable" description:"Disable service"`
Network strfmt.UUID `long:"network" description:"Network id" required:"true"`
IPAddresses []strfmt.IPv4 `long:"ip-address" description:"IP Addresses of the providing service, multiple addresses will be round robin load balanced." required:"true"`
Port int32 `long:"port" description:"Port exposed by the service" required:"true"`
Expand All @@ -92,7 +92,7 @@ type ServiceCreate struct {
}

func (*ServiceCreate) Execute(_ []string) error {
enabled := ServiceOptions.ServiceCreate.Enable || ServiceOptions.ServiceCreate.Disable
enabled := ServiceOptions.ServiceCreate.Enable || !ServiceOptions.ServiceCreate.Disable

sv := models.Service{
Name: ServiceOptions.ServiceCreate.Name,
Expand Down
Loading

0 comments on commit 549879c

Please sign in to comment.