Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

octopus tenant variables list - unknown flag: --tenant #297

Open
thampton opened this issue Nov 29, 2023 · 1 comment
Open

octopus tenant variables list - unknown flag: --tenant #297

thampton opened this issue Nov 29, 2023 · 1 comment

Comments

@thampton
Copy link

thampton commented Nov 29, 2023

The bug

octopus tenant variables list --tenant "Bobs Wood Shop" returns "unknown flag: --tenant

Documentation:

Manage tenant variables in Octopus Deploy

USAGE
 octopus tenant variables <command> [flags]

CORE COMMANDS
 list:        List tenant variables
 update:      Update the value of a tenant variable

INHERITED FLAGS
 -h, --help                   Show help for a command
     --no-prompt              Disable prompting in interactive mode
 -f, --output-format string   Specify the output format for a command ("json", "table", or "basic") (default "table")
 -s, --space string           Specify the space for operations

EXAMPLE
 $ octopus tenant variables list --tenant "Bobs Wood Shop"
 $ octopus tenant variables view --name "DatabaseName" --tenant "Bobs Wood Shop"

Appears the format in this #225 PR somewhat works but it doesn't match the documentation or examples.

% octopus tenant variables list "Blue"
? You have not specified a Space. Please select one: Pattern - Blue-Green
NAME  LABEL  TYPE  OWNER  ENVIRONMENT  VALUE  SENSITIVE  DEFAULT VALUE

Command to reproduce

octopus tenant variables list --tenant "Bobs Wood Shop"
octopus tenant variables view --tenant "Bobs Wood Shop" --name "DatabaseName"

Outcome

unknown flag: --tenant

Versions

cli: Latest

brew info octopus-cli
==> octopusdeploy/taps/octopus-cli: stable 1.7.1
The New CLI (octopus) for Octopus Deploy, a user-friendly DevOps tool for developers that supports release management, deployment automation, and operations runbooks
https://github.com/OctopusDeploy/cli
/usr/local/Cellar/octopus-cli/1.7.1 (6 files, 13.5MB) *
  Built from source on 2023-11-29 at 10:18:30
From: https://github.com/octopusdeploy/homebrew-taps/blob/HEAD/octopus-cli.rb
License: Apache-2.0

Octopus Server: https://samples.octopus.app/

Links

@thampton thampton changed the title octospus tenant variables list - unknown flag: --tenant octopus tenant variables list - unknown flag: --tenant Nov 29, 2023
@ibraheemoctopus
Copy link

ibraheemoctopus commented Nov 29, 2023

I've tried to replicate this locally on my end, and I see that when using octopus tenant variables list tenant "example" I get the expected results; however I try with octopus tenant variables list --tenant I see unknown flag: --tenant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants