Rodrigo Saito

Fix vpc_config parameters

Boto expects SecurityGroupIds and SubnetIds to be arrays instead of a strings separated with ",".
...@@ -76,10 +76,10 @@ class Function(object): ...@@ -76,10 +76,10 @@ class Function(object):
76 if 'vpc_config' in self._config: 76 if 'vpc_config' in self._config:
77 if 'security_group_ids' in self._config['vpc_config']: 77 if 'security_group_ids' in self._config['vpc_config']:
78 sgids = self._config['vpc_config']['security_group_ids'] 78 sgids = self._config['vpc_config']['security_group_ids']
79 - vpc_config['SecurityGroupIds'] = ','.join(sgids) 79 + vpc_config['SecurityGroupIds'] = sgids
80 if 'subnet_ids' in self._config['vpc_config']: 80 if 'subnet_ids' in self._config['vpc_config']:
81 snids = self._config['vpc_config']['subnet_ids'] 81 snids = self._config['vpc_config']['subnet_ids']
82 - vpc_config['SubnetIds'] = ','.join(snids) 82 + vpc_config['SubnetIds'] = snids
83 return vpc_config 83 return vpc_config
84 84
85 @property 85 @property
......