Skip to content

Commit

Permalink
Enable GCE Disk NFS type.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288976145
  • Loading branch information
bvliu authored and shyamsabhaya committed Jan 10, 2020
1 parent 7171ace commit deb94e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Expand Up @@ -656,6 +656,8 @@ def CreateScratchDisk(self, disk_spec):
self.local_disk_counter += 1
if self.local_disk_counter > self.max_local_disks:
raise errors.Error('Not enough local disks.')
elif disk_spec.disk_type == disk.NFS:
data_disk = self._GetNfsService().CreateNfsDisk()
else:
name = '%s-data-%d-%d' % (self.name, len(self.scratch_disks), i)
data_disk = gce_disk.GceDisk(disk_spec, name, self.zone, self.project)
Expand Down

0 comments on commit deb94e3

Please sign in to comment.