Skip to content

Commit

Permalink
Merge pull request #199 from wss-org/refactor/name
Browse files Browse the repository at this point in the history
refactor: update function name
  • Loading branch information
wss-git authored Mar 6, 2023
2 parents 5a756e0 + 6426a4b commit 03b78f3
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 10 deletions.
66 changes: 59 additions & 7 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/lib/resource/nas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export declare class AlicloudNas extends AlicloudClient {
describeNasZones(): Promise<any>;
removeHelperService(serviceName: string): Promise<void>;
createDefaultNas(nasServiceName: string, vpcConfig: VpcConfig, nasDir: string, roleArn: string, assumeYes: boolean, runtime: string): Promise<NasConfig>;
getInvalidMountAssociationVpcId(vpcId: string, nasConfig: NasConfig): Promise<string>;
}
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: fc-deploy
Provider:
- 阿里云
Version: 0.0.113
Version: 0.0.114
Description: 阿里云函数计算基础组件
HomePage: https://github.com/devsapp/fc-base
Tags:
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fc/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class FcService extends FcDeploy<ServiceConfig> {
}
}

const abnormalAssociation = await alicloudNas.checkMountAssociationVpcId(vpcConfig.vpcId, nasConfig as NasConfig);
const abnormalAssociation = await alicloudNas.getInvalidMountAssociationVpcId(vpcConfig.vpcId, nasConfig as NasConfig);
if (abnormalAssociation) {
throw new core.CatchableError(`The mount point ${abnormalAssociation} and vpcId ${vpcConfig.vpcId} do not match`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/resource/nas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class AlicloudNas extends AlicloudClient {
};
}

async checkMountAssociationVpcId(vpcId: string, nasConfig: NasConfig): Promise<string> {
async getInvalidMountAssociationVpcId(vpcId: string, nasConfig: NasConfig): Promise<string> {
try {
const mountPoints: MountPoint[] = _.get(nasConfig, 'mountPoints', []);
if (_.isEmpty(mountPoints)) {
Expand Down

0 comments on commit 03b78f3

Please sign in to comment.