Skip to content

Commit f56b19a

Browse files
committed
fix(scf): update function code missing namespace
1 parent 2b4d0d2 commit f56b19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/scf/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default class Scf {
188188
FunctionName: functionInputs.FunctionName,
189189
CosBucketName: functionInputs.Code?.CosBucketName,
190190
CosObjectName: functionInputs.Code?.CosObjectName,
191-
Namespace: inputs.Namespace || funcInfo.Namespace,
191+
Namespace: inputs.namespace || funcInfo.Namespace,
192192
};
193193
await this.request(updateFunctionConnfigure);
194194
return true;
@@ -589,7 +589,7 @@ export default class Scf {
589589
const { Status, StatusReasons } = funcInfo;
590590
const reason = StatusReasons && StatusReasons.length > 0 ? StatusReasons[0].ErrorMessage : '';
591591
if (Status === 'Active') {
592-
return true;
592+
return funcInfo;
593593
}
594594
let errorMsg = '';
595595
switch (Status) {

0 commit comments

Comments
 (0)