mirror of https://github.com/portainer/portainer
fix(container-creation): validate runtime property (#3581)
Co-authored-by: linquize <linquize2@yahoo.com>pull/2776/head
parent
8d7bae0560
commit
bfdb4dba12
|
@ -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…
Reference in New Issue