mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(container-creation): validate runtime property (#3581)
Co-authored-by: linquize <linquize2@yahoo.com>
This commit is contained in:
parent
8d7bae0560
commit
bfdb4dba12
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
|
||||||
|
|
||||||
SystemService.info()
|
SystemService.info()
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
$scope.availableRuntimes = Object.keys(data.Runtimes);
|
$scope.availableRuntimes = data.Runtimes ? Object.keys(data.Runtimes) : [];
|
||||||
$scope.config.HostConfig.Runtime = '';
|
$scope.config.HostConfig.Runtime = '';
|
||||||
$scope.state.sliderMaxCpu = 32;
|
$scope.state.sliderMaxCpu = 32;
|
||||||
if (data.NCPU) {
|
if (data.NCPU) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue