aws-sg-container
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -26,4 +26,2 @@ /* | ||
var deploy = function deploy(mode, target, system, containerDef, container, out, cb) { | ||
@@ -30,0 +28,0 @@ out.preview({cmd: 'check security groups', host: null, user: null, keyPath: null}); |
@@ -30,2 +30,4 @@ /* | ||
_ec2.describeSecurityGroups(sgParams, function(err, sgroups) { | ||
var c = _.find(system.topology.containers, function(cont) { return cont.id === container.id; }); | ||
if (sgroups && sgroups.SecurityGroups && sgroups.SecurityGroups.length > 0) { | ||
@@ -42,3 +44,3 @@ match = _.find(sgroups.SecurityGroups, function(group) { return group.GroupName === container.id; }); | ||
return cb(null, system); | ||
} | ||
} | ||
else { | ||
@@ -53,4 +55,4 @@ return cb(err, system); | ||
_ec2.createTags(tagParams, function() { | ||
var c = _.find(system.topology.containers, function(cont) { return cont.id === container.id; }); | ||
c.nativeId = resp.GroupId; | ||
c.groupId = resp.GroupId; | ||
system.dirty = true; | ||
@@ -71,2 +73,5 @@ if (sg.IpPermissions) { | ||
else { | ||
c.nativeId = match.GroupId; | ||
c.groupId = match.GroupId; | ||
system.dirty = true; | ||
cb(); | ||
@@ -73,0 +78,0 @@ } |
@@ -14,7 +14,9 @@ { | ||
], | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"license": "Artistic License 2.0", | ||
"author": "Peter Elger (http://nearform.com/)", | ||
"contributors": [ | ||
"Peter Elger <elger.peter@gmail.com> (http://peterelger.com/)" | ||
"Peter Elger <elger.peter@gmail.com> (http://peterelger.com/)", | ||
"Luca Lanziani <luca@lanziani.com>", | ||
"Matteo Collina <hello@matteocollina.com>" | ||
], | ||
@@ -21,0 +23,0 @@ "main": "lib/container", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71710
7
134
24