File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
tencentcloud/services/cam Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:enhancement
2+ resource/tencentcloud_cam_policy: Update error message
3+ ```
Original file line number Diff line number Diff line change @@ -1207,20 +1207,20 @@ func (me *CamService) PolicyDocumentForceCheck(document string) error {
12071207 //multi value case in elemant `resource`, `action`: input:""/[""], output: [""]
12081208 if state .Resource != nil {
12091209 if reflect .TypeOf (state .Resource ) == reflect .TypeOf ("string" ) {
1210- return fmt .Errorf ("The format of `resource` in policy document is invalid, its type must be array" )
1210+ return fmt .Errorf ("The format of `resource` in policy document is invalid, its type must be array. " )
12111211 }
12121212 }
12131213
12141214 if state .Action != nil {
12151215 if reflect .TypeOf (state .Action ) == reflect .TypeOf ("string" ) {
1216- return fmt .Errorf ("The format of `resource ` in policy document is invalid, its type must be array" )
1216+ return fmt .Errorf ("The format of `action ` in policy document is invalid, its type must be array. " )
12171217 }
12181218
12191219 }
12201220 //multi value case in elemant `principal.qcs`:input :root/[uin of the user], output:[uin of the user]
12211221 for _ , qcs := range state .Principal .Qcs {
12221222 if strings .Contains (qcs , "root" ) {
1223- return fmt .Errorf ("`root` format is not supported, please replace it with uin" )
1223+ return fmt .Errorf ("`root` format is not supported, please replace it with uin. " )
12241224 }
12251225 }
12261226 }
You can’t perform that action at this time.
0 commit comments