Skip to content

Commit

Permalink
Add support for specifying the NFS server address in the mount point …
Browse files Browse the repository at this point in the history
…EE-7019 (#11922)
  • Loading branch information
jamescarppe committed Jun 12, 2024
1 parent 55706cb commit 93ce33f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/docker/components/volumesNFSForm/volumesnfsForm.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion app/docker/views/volumes/create/createVolumeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down

0 comments on commit 93ce33f

Please sign in to comment.