Add support for specifying the NFS server address in the mount point EE-7019 (#11922)

pull/11936/head
James Carppe 6 months ago committed by GitHub
parent 55706cbf35
commit 93ce33fac8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,7 @@
class="form-control"
ng-model="$ctrl.data.mountPoint"
name="nfs_mountpoint"
placeholder="e.g. /export/share, :/export/share, /share or :/share"
placeholder="e.g. /export/share, :/export/share, address:/export/share, /share, :/share or address:/share"
required
/>
</div>

@ -99,7 +99,7 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
}
driverOptions.push({ name: 'o', value: options });
var mountPoint = data.mountPoint[0] === ':' ? data.mountPoint : ':' + data.mountPoint;
var mountPoint = data.mountPoint.indexOf(':') === -1 ? ':' + data.mountPoint : data.mountPoint;
driverOptions.push({ name: 'device', value: mountPoint });
}

Loading…
Cancel
Save