mirror of https://github.com/portainer/portainer
Add support for specifying the NFS server address in the mount point EE-7019 (#11922)
parent
55706cbf35
commit
93ce33fac8
|
@ -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…
Reference in New Issue