}
@Override
public void configureFirewall(InstanceData instance, List<SecurityGroupData> securityGroups)
throws CloudException {
ConfigureFirewall configureFirewall = new ConfigureFirewall(GawkerHost.this, applydContext);
// Write the security groups first, in case we have an error or
// concurrent operation
// (instances rules depend on security groups)
for (SecurityGroupData securityGroup : securityGroups) {
updateApplyd |= configureFirewall.updateConfig(securityGroup);
}
if (instance != null) {
updateApplyd |= configureFirewall.updateConfig(instance);
}
}