mirror of https://github.com/portainer/portainer
fix(container-creation): fix an issue with command parsing (#2642)
* fix(container-creation): fix an issue with command parsing * refactor(container-creation): remove indentation updatepull/2659/head
parent
f772cd31cb
commit
1a4dff536d
|
@ -1,10 +1,9 @@
|
||||||
angular.module('portainer.docker')
|
angular.module('portainer.docker').factory('ContainerHelper', [function ContainerHelperFactory() {
|
||||||
.factory('ContainerHelper', [function ContainerHelperFactory() {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
var helper = {};
|
var helper = {};
|
||||||
|
|
||||||
helper.commandStringToArray = function(command) {
|
helper.commandStringToArray = function(command) {
|
||||||
return splitargs(command, undefined, true);
|
return splitargs(command);
|
||||||
};
|
};
|
||||||
|
|
||||||
helper.commandArrayToString = function(array) {
|
helper.commandArrayToString = function(array) {
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
<form class="form-horizontal" style="margin-top: 15px;">
|
<form class="form-horizontal" style="margin-top: 15px;">
|
||||||
<!-- command-input -->
|
<!-- command-input -->
|
||||||
<div class="form-group">
|
<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">
|
<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">
|
<input type="text" class="form-control" ng-model="config.Cmd" id="container_command" placeholder="e.g. /usr/bin/nginx -t -c /mynginx.conf">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue