mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-05 02:32:27 +08:00
fix(region): support nas create with tag
This commit is contained in:
@@ -105,6 +105,14 @@ func (self *FileSystemCreateTask) OnInit(ctx context.Context, obj db.IStandalone
|
||||
|
||||
cloudprovider.WaitMultiStatus(iFs, []string{api.NAS_STATUS_AVAILABLE, api.NAS_STATUS_CREATE_FAILED}, time.Second*5, time.Minute*10)
|
||||
|
||||
tags, _ := fs.GetAllUserMetadata()
|
||||
if len(tags) > 0 {
|
||||
err = iFs.SetTags(tags, true)
|
||||
if err != nil {
|
||||
logclient.AddActionLogWithStartable(self, fs, logclient.ACT_UPDATE, errors.Wrapf(err, "SetTags"), self.UserCred, false)
|
||||
}
|
||||
}
|
||||
|
||||
self.SetStage("OnSyncstatusComplete", nil)
|
||||
fs.StartSyncstatus(ctx, self.GetUserCred(), self.GetTaskId())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user