d6ef26173d1f2e65ec65570683e8ca43d054c8d4,perfkitbenchmarker/providers/azure/azure_network.py,AzureStorageAccount,_Exists,#AzureStorageAccount#,196

Before Change


                "--json",
                self.name]
    stdout, _, _ = vm_util.IssueCommand(show_cmd, suppress_warning=True)
    try:
      json.loads(stdout)
    except ValueError:
      return False
    return True


class AzureVirtualNetwork(resource.BaseResource):

After Change



  def _Exists(self):
    Returns true if the storage account exists.
    _, _, retcode = vm_util.IssueCommand(
        [azure.AZURE_PATH, "storage", "account", "show",
         "--json",
         self.name] + self.resource_group.args,
        suppress_warning=True)

    return retcode == 0

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d6ef26173d1f2e65ec65570683e8ca43d054c8d4
Time: 2016-09-20
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/azure/azure_network.py
Class Name: AzureStorageAccount
Method Name: _Exists


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d6ef26173d1f2e65ec65570683e8ca43d054c8d4
Time: 2016-09-20
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/azure/azure_virtual_machine.py
Class Name: AzureVirtualMachine
Method Name: _Exists


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d6ef26173d1f2e65ec65570683e8ca43d054c8d4
Time: 2016-09-20
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/azure/azure_disk.py
Class Name: AzureDisk
Method Name: _Exists