6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2,perfkitbenchmarker/rackspace/rackspace_virtual_machine.py,RackspaceVirtualMachine,_Create,#RackspaceVirtualMachine#,115

Before Change


            tf.flush()
            super(RackspaceVirtualMachine, self)._Create()
            create_cmd = [FLAGS.nova_path]
            create_cmd.extend(util.GetDefaultRackspaceNovaFlags(self))
            create_cmd.extend(["boot",
                               "--flavor", self.machine_type,
                               "--image", self.image,
                               "--file", "/home/%s/.ssh/authorized_keys=%s" % (

After Change


    super(RackspaceVirtualMachine, self)._Create()
    with tempfile.NamedTemporaryFile(dir=vm_util.GetTempDir(),
                                     prefix="user-data") as tf:
      with open(self.ssh_public_key) as f:
        public_key = f.read().rstrip("\n")

      script = CLOUD_CONFIG_TEMPLATE.format(self.user_name, public_key)
      tf.write(script)
      tf.flush()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Create


Project Name: pantsbuild/pants
Commit Name: 1f6029ab50cc842f274029c76337be29d4bb0967
Time: 2017-09-11
Author: cheister@gmail.com
File Name: src/python/pants/backend/jvm/tasks/javadoc_gen.py
Class Name: JavadocGen
Method Name: create_javadoc_command


Project Name: gooofy/zamia-speech
Commit Name: 9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name: