fix(region): elasticcache_instances: fix error fmt

This commit is contained in:
Yousong Zhou
2020-11-21 17:28:38 +08:00
parent 65571cc5e4
commit ab7ba83225
+1 -1
View File
@@ -1344,7 +1344,7 @@ func (self *SElasticcache) GetAdminAccount() (*SElasticcacheAccount, error) {
}
}
return nil, httperrors.NewNotFoundError(fmt.Sprintf("no admin account found for elastic cache %s", self.Id))
return nil, httperrors.NewNotFoundError("no admin account found for elastic cache %s", self.Id)
}
func (self *SElasticcache) StartResetPasswordTask(ctx context.Context, userCred mcclient.TokenCredential, params *jsonutils.JSONDict, parentTaskId string) error {