fix(container-creation): fix an issue with command parsing (#2642)

* fix(container-creation): fix an issue with command parsing

* refactor(container-creation): remove indentation update
pull/2659/head
Anthony Lapenna 2019-01-23 12:25:42 +13:00 committed by GitHub
parent f772cd31cb
commit 1a4dff536d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,9 @@
angular.module('portainer.docker')
.factory('ContainerHelper', [function ContainerHelperFactory() {
angular.module('portainer.docker').factory('ContainerHelper', [function ContainerHelperFactory() {
'use strict';
var helper = {};
helper.commandStringToArray = function(command) {
return splitargs(command, undefined, true);
return splitargs(command);
};
helper.commandArrayToString = function(array) {

View File

@ -162,7 +162,7 @@
<form class="form-horizontal" style="margin-top: 15px;">
<!-- command-input -->
<div class="form-group">
<label for="container_command" class="col-sm-2 col-lg-1 control-label text-left">Command & logging</label>
<label for="container_command" class="col-sm-2 col-lg-1 control-label text-left">Command</label>
<div class="col-sm-9">
<input type="text" class="form-control" ng-model="config.Cmd" id="container_command" placeholder="e.g. /usr/bin/nginx -t -c /mynginx.conf">
</div>