Skip to content

Commit 8007e01

Browse files
committed
Remove the HostConfig parameter from the Container.start request
1 parent 05bdde0 commit 8007e01

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

app/components/containers/containersController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ angular.module('containers', [])
3737
Container.get({id: c.Id}, function (d) {
3838
c = d;
3939
counter = counter + 1;
40-
action({id: c.Id, HostConfig: c.HostConfig || {}}, function (d) {
40+
action({id: c.Id}, {}, function (d) {
4141
Messages.send("Container " + msg, c.Id);
4242
var index = $scope.containers.indexOf(c);
4343
complete();

app/components/startContainer/startContainerController.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,10 @@ angular.module('startContainer', ['ui.bootstrap'])
125125
var s = $scope;
126126
Container.create(config, function (d) {
127127
if (d.Id) {
128-
var reqBody = config.HostConfig || {};
129-
reqBody.id = d.Id;
130-
ctor.start(reqBody, function (cd) {
131-
if (cd.id) {
132-
Messages.send('Container Started', d.Id);
133-
$('#create-modal').modal('hide');
134-
loc.path('/containers/' + d.Id + '/');
135-
} else {
136-
failedRequestHandler(cd, Messages);
137-
ctor.remove({id: d.Id}, function () {
138-
Messages.send('Container Removed', d.Id);
139-
});
140-
}
128+
ctor.start({id: d.Id}, {}, function (cd) {
129+
Messages.send('Container Started', d.Id);
130+
$('#create-modal').modal('hide');
131+
loc.path('/containers/' + d.Id + '/');
141132
}, function (e) {
142133
failedRequestHandler(e, Messages);
143134
});

0 commit comments

Comments
 (0)