Skip to content

Commit

Permalink
fix(aws): Additional security group details for Upsert security group… (
Browse files Browse the repository at this point in the history
#3393)

* fix(aws): Additional security group details for Upsert security group task

* adding additional comments
  • Loading branch information
aravindmd authored and mergify[bot] committed Jan 24, 2020
1 parent 02cd0b8 commit fd4972e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ class AmazonSecurityGroupUpserter implements SecurityGroupUpserter, CloudProvide
allVPCs, operation.vpcId as String, region, operation.credentials as String
).id
}

/**
* Additional security group details can be used to pass additional details that can be used in custom preprocessor in clouddriver,
* In order to consume this detail, changes are required in clouddriver preprocessor/atomic operation.
*/
return [
(SecurityGroupUpserter.OPERATION): [
name : operation.securityGroupName,
Expand All @@ -62,7 +65,8 @@ class AmazonSecurityGroupUpserter implements SecurityGroupUpserter, CloudProvide
description : operation.description,
securityGroupIngress: operation.securityGroupIngress,
ipIngress : operation.ipIngress,
ingressAppendOnly : operation.ingressAppendOnly ?: false
ingressAppendOnly : operation.ingressAppendOnly ?: false,
additionalSecurityGroupDetails : operation.additionalSecurityGroupDetails
]
]
}
Expand Down

0 comments on commit fd4972e

Please sign in to comment.