dc0eb66a399d49e13b7e6beda0f726737eedb520,perfkitbenchmarker/providers/digitalocean/digitalocean_virtual_machine.py,DigitalOceanVirtualMachine,_Exists,#DigitalOceanVirtualMachine#,193
Before Change
def _Exists(self):
Returns true if the VM exists.
_ , ret = util.RunCurlCommand(
"GET", "droplets/%s" % self.droplet_id,
suppress_warning=True)
if ret == 0:
After Change
def _Exists(self):
Returns true if the VM exists.
response, retcode = util.DoctlAndParse(
["compute", "droplet", "get", self.droplet_id])
return retcode == 0
def CreateScratchDisk(self, disk_spec):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: dc0eb66a399d49e13b7e6beda0f726737eedb520
Time: 2016-09-06
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/digitalocean/digitalocean_virtual_machine.py
Class Name: DigitalOceanVirtualMachine
Method Name: _Exists
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: dc0eb66a399d49e13b7e6beda0f726737eedb520
Time: 2016-09-06
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/digitalocean/digitalocean_virtual_machine.py
Class Name: DigitalOceanVirtualMachine
Method Name: _Delete
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: dc0eb66a399d49e13b7e6beda0f726737eedb520
Time: 2016-09-06
Author: nlavine@google.com
File Name: perfkitbenchmarker/providers/digitalocean/digitalocean_virtual_machine.py
Class Name: DigitalOceanVirtualMachine
Method Name: _PostCreate