-
Notifications
You must be signed in to change notification settings - Fork 0
Valid octl iaas policyversion delete shows help #128
Copy link
Copy link
Closed
Labels
kind/bugBug fixBug fix
Description
Bug Summary
Call: octl iaas policyversion delete
When both the PolicyOrn argument and the VersionId flag are provided, the syntax is valid but octl does not accept the command. The problem is caused by the prompt:
prompt:
action: delete
display:
- api
- ReadPolicyVersion
- --PolicyOrn
- "%0"
- --VersionId
- "%1"
- --output
- table
That uses the %1 input which is a required flag that is not getting propagated to the call.
To bypass the issue you can use the -y flag, that will not ask for the prompt:
octl iaas policyversion delete "orn:..." --version versionNumber -y
Steps to Reproduce
Run:
octl iaas policyversion delete "orn:..." --version versionNumber
Expected Behavior
The command should be accepted as the syntax is valid
Actual Behavior
Usage menu is showed:
Usage:
octl iaas policyversion delete policy_orn [flags]
Aliases:
delete, del
Flags:
-h, --help help for delete
--version string The ID of the version of the policy you want to delete.
Global Flags:
-c, --columns string columns to display - [+]<title>:<jq query for content>||<title>:<jq query for content>
--config string Path of profile file (by default, ~/.osc/config.json)
--filter strings comma separated list of filters for results - name:value,name:value, alias for jq filter 'select(.name | test("value"))'
--jq string jq filter
--no-upgrade do not check for new versions
-O, --out-file string redirect output to file
-o, --output string output format (raw, json, yaml, table, csv, none, base64) (default "raw")
--payload string JSON content for query body
--profile string Profile to use in profile file (by default, "default")
--single convert single entry lists to a single object
--template string JSON template file for query body
-v, --verbose Verbose output
-y, --yes answer yes to all prompts
Project Version
No response
Environment Info
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugBug fixBug fix