Skip to content

Commit

Permalink
fix: govc: wire up flags for namespace service create
Browse files Browse the repository at this point in the history
Signed-off-by: Gabe Rosenhouse <gabriel.rosenhouse@broadcom.com>
  • Loading branch information
rosenhouse committed Nov 18, 2024
1 parent 3442a68 commit 71b9c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions govc/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4750,6 +4750,9 @@ Examples:
govc namespace.service.create manifest.yaml
Options:
-accept-eula=false Auto accept EULA
-spec-type=vsphere Type of Spec: only vsphere is supported right now
-trusted=false Define if this is a trusted provider
```

## namespace.service.deactivate
Expand Down
7 changes: 3 additions & 4 deletions govc/namespace/service/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ func (cmd *create) Register(ctx context.Context, f *flag.FlagSet) {
cmd.ClientFlag, ctx = flags.NewClientFlag(ctx)
cmd.ClientFlag.Register(ctx, f)

flag.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now")
flag.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider")
flag.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA")

f.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now")
f.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider")
f.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA")
}

func (cmd *create) Description() string {
Expand Down

0 comments on commit 71b9c76

Please sign in to comment.