Skip to content

Commit

Permalink
Merge pull request #23 from devsapp/dev
Browse files Browse the repository at this point in the history
fix: fix auto vpc config missing problem
  • Loading branch information
SquatsTonight authored May 28, 2021
2 parents 7b3f760 + de9f05f commit 9383d10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/lib/fc/service.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fc-delpoy",
"main": "./dist/index.js",
"version": "0.0.15",
"version": "0.0.16",
"dependencies": {
"@serverless-devs/core": "^0.0.x",
"@types/lodash": "^4.14.168",
Expand Down
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.15
Version: 0.0.16
Description: 阿里云函数计算基础组件
HomePage: https://github.com/devsapp/fc-base
Tags:
Expand Down
6 changes: 3 additions & 3 deletions src/lib/fc/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class FcService extends FcDeploy<ServiceConfig> {
isAutoConfig(this.localConfig.nasConfig) ||
isAutoConfig(this.localConfig.vpcConfig) ||
(_.isEmpty(this.localConfig.role) && !_.isEmpty(resolvedConfigInState.role))) {
this.localConfig.logConfig = isAutoConfig(this.localConfig.logConfig) ? resolvedConfigInState.logConfig : this.localConfig.logConfig;
this.localConfig.nasConfig = isAutoConfig(this.localConfig.nasConfig) ? resolvedConfigInState.nasConfig : this.localConfig.nasConfig;
this.localConfig.vpcConfig = isAutoConfig(this.localConfig.vpcConfig) ? resolvedConfigInState.vpcConfig : this.localConfig.vpcConfig;
this.localConfig.logConfig = (isAutoConfig(this.localConfig.logConfig) && !_.isEmpty(resolvedConfigInState.logConfig)) ? resolvedConfigInState.logConfig : this.localConfig.logConfig;
this.localConfig.nasConfig = (isAutoConfig(this.localConfig.nasConfig) && !_.isEmpty(resolvedConfigInState.nasConfig)) ? resolvedConfigInState.nasConfig : this.localConfig.nasConfig;
this.localConfig.vpcConfig = (isAutoConfig(this.localConfig.vpcConfig) && !_.isEmpty(resolvedConfigInState.vpcConfig)) ? resolvedConfigInState.vpcConfig : this.localConfig.vpcConfig;
this.localConfig.role = (_.isEmpty(this.localConfig.role) && !_.isEmpty(resolvedConfigInState.role)) ? resolvedConfigInState.role : this.localConfig.role;
}

Expand Down

0 comments on commit 9383d10

Please sign in to comment.