Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
python3-ec2uploadimg.9844
proper-subnet-use.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File proper-subnet-use.diff of Package python3-ec2uploadimg.9844
diff --git a/lib/ec2imgutils/ec2uploadimg.py b/lib/ec2imgutils/ec2uploadimg.py index 26bdc86..7e66983 100644 --- a/lib/ec2utils/ec2uploadimg.py +++ b/lib/ec2utils/ec2uploadimg.py @@ -718,8 +718,14 @@ class EC2ImageUploader(EC2ImgUtils): KeyName=self.ssh_key_pair_name, InstanceType=self.launch_ins_type, Placement={'AvailabilityZone': self.zone}, - SubnetId=self.vpc_subnet_id, - SecurityGroupIds=self.security_group_ids.split(',') + NetworkInterfaces=[ + { + 'DeviceIndex': 0, + 'AssociatePublicIpAddress': not self.use_private_ip, + 'SubnetId': self.vpc_subnet_id, + 'Groups': self.security_group_ids.split(',') + } + ] )['Instances'][0] else: instance = self._connect().run_instances( @@ -729,7 +735,13 @@ class EC2ImageUploader(EC2ImgUtils): KeyName=self.ssh_key_pair_name, InstanceType=self.launch_ins_type, Placement={'AvailabilityZone': self.zone}, - SubnetId=self.vpc_subnet_id, + NetworkInterfaces=[ + { + 'DeviceIndex': 0, + 'AssociatePublicIpAddress': not self.use_private_ip, + 'SubnetId': self.vpc_subnet_id + } + ] )['Instances'][0] self.instance_ids.append(instance['InstanceId'])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor