pull/11920/head
Yajith Dayarathna 6 months ago
parent 6a8e6734f3
commit 17a16b99cb
No known key found for this signature in database
GPG Key ID: 7F90D690ED665EF0

@ -57,7 +57,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>

@ -97,7 +97,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