(opts *EnableOptions)
| 72 | } |
| 73 | |
| 74 | func PromptMissing(opts *EnableOptions) error { |
| 75 | if opts.IdOrName == "" { |
| 76 | existingTenants, err := opts.Client.Tenants.GetAll() |
| 77 | if err != nil { |
| 78 | return err |
| 79 | } |
| 80 | selectedTenant, err := selectors.ByName(opts.Ask, existingTenants, "Select the tenant you wish to enable:") |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | opts.IdOrName = selectedTenant.GetID() |
| 85 | } |
| 86 | |
| 87 | return nil |
| 88 | } |