-
Notifications
You must be signed in to change notification settings - Fork 194
refactor vsi create-option #1337
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
Conversation
allmightyspiff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changes look mostly great, just a few minor changes to make this command perform better.
If we can get this command to stop using Virtual_Guest::getCreateObjectOptions it will actually respond quickly, which will be nice.
SoftLayer/CLI/virt/create_options.py
Outdated
|
|
||
|
|
||
| @click.command(short_help="Get options to use for creating virtual servers.") | ||
| @click.option('--vsi-type', required=False, type=click.Choice(['TRANSIENT', 'SUSPEND']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add PUBLIC as a choice, and make it the default here, instead of in the cli command. Add show_default=True to the option.
#1334