-
Notifications
You must be signed in to change notification settings - Fork 136
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
fix(cbs): [119747862] tencentcloud_cbs_storage
add auto_mount_configuration
params
#2954
base: master
Are you sure you want to change the base?
Conversation
@@ -246,6 +302,11 @@ func resourceTencentCloudCbsStorageCreate(d *schema.ResourceData, meta interface | |||
} | |||
} | |||
|
|||
if autoMount { | |||
// Skip the initial UNATTACHED state of the CBS | |||
time.Sleep(10 * time.Second) |
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.
sleep这么久?
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.
自动挂载磁盘操作大概是3、5分钟
sleep10秒是为了100%跳过磁盘刚创建好 默认待挂载的状态
这里是有判断的sleep,整体不会影响挂载的过程
@@ -124,6 +125,34 @@ func ResourceTencentCloudCbsStorage() *schema.Resource { | |||
Computed: true, | |||
Description: "The quota of backup points of cloud disk.", | |||
}, | |||
"auto_mount_configuration": { | |||
Type: schema.TypeList, |
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.
只支持创建,不支持读取么
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.
该参数mount_point和file_system_type是无返回的,单纯返回insId意义不大,并且该功能是一次性设置所以我没设置read
No description provided.