Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

            @staticmethod
    def getCredentials(runnable):

        if AuthnFactory._useLocalHostCredentials(runnable):
            return LocalhostCredentialsConnector(runnable)
        
        try:
            usernamePasswordCredentials = runnable.username and runnable.password
        except AttributeError:
            usernamePasswordCredentials = False
        try:
            pemCredentials = runnable.pemCertificate and runnable.pemKey
        except AttributeError:
            pemCredentials = False
        
        if usernamePasswordCredentials:
            return UsernamePasswordCredentialsConnector(runnable)
        if pemCredentials:
            return CertificateCredentialsConnector(runnable)
        
        raise ValueError('Missing credentials')
        


src/s/t/stratuslab-client-14.03.0/stratuslab/vm_manager/Runner.py   stratuslab-client(Download)
    def _setCloudContext(self):
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)
 
        if not self.pdiskEndpoint:

src/s/t/stratuslab-client-14.03.0/stratuslab/vm_manager/CimiRunner.py   stratuslab-client(Download)
    def _setCloudContext(self):
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)
 
        if not self.pdiskEndpoint:

src/s/t/stratuslab-client-14.03.0/stratuslab/Registrar.py   stratuslab-client(Download)
        self.username = 'oneadmin'
 
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)
        self.cloud.setEndpointFromParts(self.frontendIp,

src/s/t/stratuslab-client-14.03.0/stratuslab/Monitor.py   stratuslab-client(Download)
    def _setCloud(self):
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)
 
        if self.endpoint: