Skip to content

Commit

Permalink
Removed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Buffer0x7cd authored and manvendra-singh0x7cd committed Apr 4, 2019
1 parent da00339 commit ec862f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/safe_lambda_deployments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ They work as follows:
- **AllAtOnce**: This is an instant shifting of 100% of traffic to new version. This is useful if you want to run
run pre/post hooks but don't want a gradual deployment. If you have a pipeline, you can set Beta/Gamma stages to
deploy instantly because the speed of deployments matter more than safety here.

- **Custom**: Aside from Above mentioned Configurations, Custom Codedeploy configuration are also supported.
(Example. Type: CustomCodeDeployConfiguration)

PreTraffic & PostTraffic Hooks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from samtranslator.model.intrinsics import fnSub, is_instrinsic
from samtranslator.model.update_policy import UpdatePolicy
from samtranslator.translator.arn_generator import ArnGenerator
import copy
import copy

CODE_DEPLOY_SERVICE_ROLE_LOGICAL_ID = 'CodeDeployServiceRole'
CODEDEPLOY_APPLICATION_LOGICAL_ID = 'ServerlessDeploymentApplication'
Expand Down Expand Up @@ -121,7 +121,7 @@ def deployment_group(self, function_logical_id):
'Events': ['DEPLOYMENT_FAILURE',
'DEPLOYMENT_STOP_ON_ALARM',
'DEPLOYMENT_STOP_ON_REQUEST']}

deployment_group.DeploymentConfigName = self._replace_deployment_types(copy.deepcopy(
deployment_preference.deployment_type))

Expand All @@ -148,7 +148,6 @@ def _replace_deployment_types(self, value):
return fnSub("CodeDeployDefault.Lambda${ConfigName}", {"ConfigName": value})
return value


def update_policy(self, function_logical_id):
deployment_preference = self.get(function_logical_id)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_deployment_preference_with_conditional_custom_configuration(self):
{
'ConfigName': 'AllAtOnce'
}
]
]
},
'TestDeploymentConfiguration']},
{'Fn::Sub': [
Expand Down

0 comments on commit ec862f6

Please sign in to comment.