def create_instance(self, args): # If we are configuring second NIC, ensure that this only happens for a # centOS AMI right now. if args.cloud_subnet_secondary: ec2 = boto3.resource('ec2', args.region) image = ec2.Image(args.machine_image) if 'centos' not in image.name.lower(): raise YBOpsRuntimeError("Second NIC can only be configured for CentOS right now") create_instance(args)
def create_instance(self, args): return create_instance(args)