def connect_euca(host=None, aws_access_key_id=None, aws_secret_access_key=None, port=8773, path='/services/Eucalyptus', is_secure=False, **kwargs):
 from boto.ec2 import EC2Connection
 from boto.ec2.regioninfo import RegionInfo
 if (not aws_access_key_id):
  aws_access_key_id = config.get('Credentials', 'euca_access_key_id', None)
 if (not aws_secret_access_key):
  aws_secret_access_key = config.get('Credentials', 'euca_secret_access_key', None)
 if (not host):
  host = config.get('Boto', 'eucalyptus_host', None)
 reg = RegionInfo(name='eucalyptus', endpoint=host)
 return EC2Connection(aws_access_key_id, aws_secret_access_key, region=reg, port=port, path=path, is_secure=is_secure, **kwargs)

def connect_euca ( host = None , aws_access_key_id = None , aws_secret_access_key = None , port = 8773 , path = '/services/Eucalyptus' , is_secure = False , ** kwargs ) : from boto . ec2 import EC2Connection from boto . ec2 . regioninfo import RegionInfo if ( not aws_access_key_id ) : aws_access_key_id = config . get ( 'Credentials' , 'euca_access_key_id' , None ) if ( not aws_secret_access_key ) : aws_secret_access_key = config . get ( 'Credentials' , 'euca_secret_access_key' , None ) if ( not host ) : host = config . get ( 'Boto' , 'eucalyptus_host' , None ) reg = RegionInfo ( name = 'eucalyptus' , endpoint = host ) return EC2Connection ( aws_access_key_id , aws_secret_access_key , region = reg , port = port , path = path , is_secure = is_secure , ** kwargs )
connect to a eucalyptus service .