File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ export default class UsagePlanEntiry {
39
39
// user not setup secret ids, just auto generate one
40
40
if ( ! secretIds || secretIds . length === 0 ) {
41
41
console . log ( `Creating a new Secret key.` ) ;
42
- const { AccessKeyId, AccessKeySecret } = await this . request ( {
42
+ const { AccessKeyId } = await this . request ( {
43
43
Action : 'CreateApiKey' ,
44
44
SecretName : secretName ,
45
45
AccessKeyType : 'auto' ,
46
46
} ) ;
47
- console . log ( `Secret id ${ AccessKeyId } and key ${ AccessKeySecret } created` ) ;
47
+ console . log ( `Secret id ${ AccessKeyId } and key created` ) ;
48
48
secretIdsOutput . secretIds = [ AccessKeyId ] ;
49
49
secretIdsOutput . created = true ;
50
50
} else {
Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ export default class ApigwTrigger extends BaseTrigger<ApigwTriggerInputsParams>
126
126
try {
127
127
const { api } = JSON . parse ( TriggerDesc ) ;
128
128
const { path, method } = api . requestConfig ;
129
- return `${ serviceId } /${ path } /${ method } ` ;
129
+ return `${ serviceId } /${ path . toLowerCase ( ) } /${ method } ` ;
130
130
} catch ( e ) {
131
131
return '' ;
132
132
}
133
133
}
134
134
135
- return `${ TriggerDesc . serviceId } /${ TriggerDesc . path } /${ TriggerDesc . method } ` ;
135
+ return `${ TriggerDesc . serviceId } /${ TriggerDesc . path . toLowerCase ( ) } /${ TriggerDesc . method } ` ;
136
136
}
137
137
138
138
/** 格式化输入 */
You can’t perform that action at this time.
0 commit comments