def attach(self, sr_uuid): if not self._checkmount(): self.validate_remotepath(False) util._testHost(self.dconf['server'], NFSPORT, 'NFSTarget') io_timeout = util.get_nfs_timeout(self.session, sr_uuid) self.mount_remotepath(sr_uuid, io_timeout) self.attached = True
def attach(self, sr_uuid): self.validate_remotepath(False) self.remotepath = os.path.join(self.dconf['serverpath'], sr_uuid) util._testHost(self.dconf['server'], NFSPORT, 'NFSTarget') io_timeout = util.get_nfs_timeout(self.session, sr_uuid) self.mount_remotepath(sr_uuid, io_timeout)