0d646d103590b367c28d1e9588edca610b361e1f,perfkitbenchmarker/providers/rackspace/rackspace_virtual_machine.py,RackspaceVirtualMachine,AddMetadata,#RackspaceVirtualMachine#,376
Before Change
Adds metadata to the Rackspace VM
if not kwargs:
return
env = os.environ.copy()
env.update(util.GetDefaultRackspaceNovaEnv(self.zone))
cmd = [FLAGS.nova_path, "meta", self.id, "set"]
for key, value in kwargs.iteritems():
cmd.append("{0}={1}".format(key, value))
After Change
return
cmd = util.RackCLICommand(self, "servers", "instance", "update-metadata")
cmd.flags["id"] = self.id
cmd.flags["metadata"] = ",".join("{0}={1}".format(key, value)
for key, value in kwargs.iteritems())
cmd.Issue()
def OnStartup(self):
Executes commands on the VM immediately after it has booted.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0d646d103590b367c28d1e9588edca610b361e1f
Time: 2016-02-12
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: AddMetadata
Project Name: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: tally
Project Name: osmr/imgclsmob
Commit Name: 6fb13ec78cba397600b9045a5a3c956eeb573f2a
Time: 2018-11-15
Author: osemery@gmail.com
File Name: datasets/prep_oi4bb.py
Class Name:
Method Name: create_dataset