python类connect_euca()的实例源码

ec2.py 文件源码 项目:AWSProvisionWithAnsible 作者: Praqma 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:if2017-ansible 作者: jindrichskupa 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:intro-to-aws-autoscaling-with-ansible 作者: fenske 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:Effective-DevOps-with-AWS 作者: PacktPublishing 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:Effective-DevOps-with-AWS 作者: PacktPublishing 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:Effective-DevOps-with-AWS 作者: PacktPublishing 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:kubernetes 作者: fernandoruaro 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:ansible-aerospike-example 作者: ThinkNear 项目源码 文件源码 阅读 15 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:bd 作者: mmgaggle 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:blog-load_balancing_aws_with_ansible 作者: nickhammond 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:openshift-aws-deploy 作者: nccurry 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:ask-an-expert-jan-2017 作者: ryansb 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:ansible-dcos-aws-playbook 作者: olatheander 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2inventory.py 文件源码 项目:ansible-ec2-inventory 作者: paperhive 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:aws-blog-framework 作者: proffalken 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = ec2.connect_to_region(region)
        # connect_to_region will fail "silently" by returning None if the region name is wrong or not supported
        if conn is None:
            self.fail_with_error("region name: %s likely not supported, or AWS is down.  connection to region failed." % region)
        return conn
nx_ec2.py 文件源码 项目:rancher-cloudformation 作者: nuxeo-sandbox 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = ec2.connect_to_region(region)
        # connect_to_region will fail "silently" by returning None if the region name is wrong or not supported
        if conn is None:
            self.fail_with_error("region name: %s likely not supported, or AWS is down.  connection to region failed." % region)
        return conn
ec2.py 文件源码 项目:aws-web-example 作者: marcinkubica 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:hatchup 作者: thecodeassassin 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:ansible-playbooks 作者: rancher 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host, **self.credentials)
            conn.APIVersion = '2010-08-31'
        else:
            conn = self.connect_to_aws(ec2, region)
        return conn
ec2.py 文件源码 项目:learn-ssh 作者: bocoup 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def connect(self, region):
        ''' create connection to api server'''
        if self.eucalyptus:
            conn = boto.connect_euca(host=self.eucalyptus_host)
            conn.APIVersion = '2010-08-31'
        else:
            conn = ec2.connect_to_region(region)
        # connect_to_region will fail "silently" by returning None if the region name is wrong or not supported
        if conn is None:
            self.fail_with_error("region name: %s likely not supported, or AWS is down.  connection to region failed." % region)
        return conn


问题


面经


文章

微信
公众号

扫码关注公众号