a08e235ce3b4f01780897e90ac44832052c3858d,perfkitbenchmarker/providers/openstack/os_virtual_machine.py,OpenStackVirtualMachine,_CheckFlavor,#OpenStackVirtualMachine#,178

Before Change


    Tries to get flavor, if found continues execution otherwise aborts.
    cmd = os_utils.OpenStackCLICommand(self, "flavor", "show",
                                       self.machine_type)
    stdout, stderr, _ = cmd.Issue()
    if stderr:
      raise errors.Config.InvalidValue(" ".join(
          ("Machine type %s could not be found." % self.machine_type,
           "For valid machine type IDs/names run "openstack flavor list".",)))

After Change


    Tries to get flavor, if found continues execution otherwise aborts.
    cmd = os_utils.OpenStackCLICommand(self, "flavor", "show",
                                       self.machine_type)
    msg = " ".join(
        ("Machine type %s could not be found." % self.machine_type,
         "For valid machine type IDs/names run "openstack flavor list".",))
    self._IssueCommandCheck(cmd, msg)

  def _CheckNetworks(self):
    Tries to get network, if found continues execution otherwise aborts.
    if not self.network_name:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: a08e235ce3b4f01780897e90ac44832052c3858d
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckFlavor


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: a08e235ce3b4f01780897e90ac44832052c3858d
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckImage


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 1dd13ccb1798662b155d1d33367f4d9d433fab0c
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckImage


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 1dd13ccb1798662b155d1d33367f4d9d433fab0c
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckFlavor


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 1dd13ccb1798662b155d1d33367f4d9d433fab0c
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckNetworkExists


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: a08e235ce3b4f01780897e90ac44832052c3858d
Time: 2016-06-29
Author: victor.estrada@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckNetworkExists