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

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

src/s/a/sahara-2014.1/sahara/plugins/vanilla/v1_2_1/config_helper.py   sahara(Download)
    public_key = extra.get('hadoop_public_ssh_key')
    if not private_key or not public_key:
        private_key, public_key = crypto.generate_key_pair()
        extra['hadoop_private_ssh_key'] = private_key
        extra['hadoop_public_ssh_key'] = public_key

src/s/a/sahara-2014.1/sahara/plugins/intel/v3_0_2/installer.py   sahara(Download)
def create_hadoop_ssh_keys(cluster):
    private_key, public_key = crypto.generate_key_pair()
    extra = {
        'hadoop_private_ssh_key': private_key,
        'hadoop_public_ssh_key': public_key

src/s/a/sahara-2014.1/sahara/plugins/intel/v2_5_1/installer.py   sahara(Download)
def create_hadoop_ssh_keys(cluster):
    private_key, public_key = crypto.generate_key_pair()
    extra = {
        'hadoop_private_ssh_key': private_key,
        'hadoop_public_ssh_key': public_key

src/s/a/sahara-HEAD/sahara/plugins/vanilla/v1_2_1/config_helper.py   sahara(Download)
    public_key = extra.get('hadoop_public_ssh_key')
    if not private_key or not public_key:
        private_key, public_key = crypto.generate_key_pair()
        extra['hadoop_private_ssh_key'] = private_key
        extra['hadoop_public_ssh_key'] = public_key

src/s/a/sahara-2014.1/sahara/conductor/manager.py   sahara(Download)
        merged_values['tenant_id'] = context.tenant_id
 
        private_key, public_key = crypto.generate_key_pair()
        merged_values['management_private_key'] = private_key
        merged_values['management_public_key'] = public_key

src/s/a/sahara-HEAD/sahara/conductor/manager.py   sahara(Download)
        merged_values['tenant_id'] = context.tenant_id
 
        private_key, public_key = crypto.generate_key_pair()
        merged_values['management_private_key'] = private_key
        merged_values['management_public_key'] = public_key

src/s/a/sahara-HEAD/sahara/tests/unit/utils/test_crypto.py   sahara(Download)
    def test_generate_key_pair(self):
        kp = c.generate_key_pair()
 
        self.assertIsInstance(kp, tuple)
        self.assertIsNotNone(kp[0])
    def test_to_paramiko_private_key(self):
        pk_str = c.generate_key_pair()[0]
        pk = c.to_paramiko_private_key(pk_str)
 
        self.assertIsNotNone(pk)

src/s/a/sahara-HEAD/sahara/tests/unit/service/test_instances.py   sahara(Download)
def _create_cluster_mock(node_groups, aa):
 
    user_kp = mock.Mock()
    user_kp.public_key = "123"
    private_key = c.generate_key_pair()[0]

src/s/a/sahara-2014.1/sahara/tests/unit/utils/test_crypto.py   sahara(Download)
    def test_generate_key_pair(self):
        kp = c.generate_key_pair()
 
        self.assertIsInstance(kp, tuple)
        self.assertIsNotNone(kp[0])
    def test_to_paramiko_private_key(self):
        pk_str = c.generate_key_pair()[0]
        pk = c.to_paramiko_private_key(pk_str)
 
        self.assertIsNotNone(pk)

src/s/a/sahara-2014.1/sahara/tests/unit/service/test_instances.py   sahara(Download)
def _create_cluster_mock(node_groups, aa):
 
    user_kp = mock.Mock()
    user_kp.public_key = "123"
    private_key = c.generate_key_pair()[0]