Skip to content

Commit 6cd8990

Browse files
committed
fix: bind unexist role bug
1 parent 2a15d14 commit 6cd8990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/serverless.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class ServerlessComponent extends Component {
8181

8282
const camClient = new Cam(credentials)
8383
if (!inputs.role) {
84-
if (camClient.CheckSCFExcuteRole()) {
84+
const roleExist = await camClient.CheckSCFExcuteRole()
85+
if (roleExist) {
8586
inputs.role = 'QCS_SCFExcuteRole'
8687
}
8788
}

0 commit comments

Comments
 (0)