-
Notifications
You must be signed in to change notification settings - Fork 144
add keep_image_login with resource CVM #527
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
gailwang
commented
Oct 9, 2020
tencentcloud/resource_tc_instance.go
Outdated
| if v, ok := d.GetOk("password"); ok { | ||
| request.LoginSettings.Password = helper.String(v.(string)) | ||
| } | ||
| if v, ok := d.GetOkExists("keep_image_login"); ok { |
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.
default字段,直接get哇
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.
有道理
| ) | ||
| } | ||
|
|
||
| func testAccTencentCloudInstanceWithImageLogin() string { |
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.
可以直接写个const string,没必要写函数