3d95ae5cd11987e4c963baf4da374b1fa139b807,perfkitbenchmarker/providers/openstack/os_virtual_machine.py,OpenStackVirtualMachine,_GetSchedulerHints,#OpenStackVirtualMachine#,148
Before Change
try:
group = self.client.server_groups.findall(name=group_name)[0]
except IndexError:
group = self.client.server_groups.create(
policies=[FLAGS.openstack_scheduler_policy],
name=group_name)
scheduler_hints = {"group": group.id}
return scheduler_hints
@vm_util.Retry(max_retries=4, poll_interval=2)
def _PostCreate(self):
After Change
with self._lock:
group_name = "perfkit_server_group_%s" % FLAGS.run_uri
hint_temp = "group=%s"
if self.zone in self.created_server_group_dict:
hint = hint_temp % self.created_server_group_dict[self.zone]["id"]
return hint
server_group = self._CreateServerGroup(group_name)
self.server_group_id = server_group["id"]
self.created_server_group_dict[self.zone] = server_group
if self.zone in self.deleted_server_group_set:
self.deleted_server_group_set.remove(self.zone)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3d95ae5cd11987e4c963baf4da374b1fa139b807
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _GetSchedulerHints
Project Name: comic/grand-challenge.org
Commit Name: f8f5eb96468aa94acad1c085fc9a8c80d7b6db8f
Time: 2017-11-15
Author: pkcakeout@gmail.com
File Name: app/evaluation/widgets/uploader.py
Class Name: AjaxUploadWidget
Method Name: handle_ajax
Project Name: home-assistant/home-assistant
Commit Name: 78cfed1fb0237e6f3e5a7613a79e63a8fb45a795
Time: 2015-11-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request