Skip to content

Commit

Permalink
Merge pull request #34 from james-nesbitt/fixcommit
Browse files Browse the repository at this point in the history
fix commit operation by selecting proper repo
  • Loading branch information
james-nesbitt committed Oct 10, 2015
2 parents 2ba3e0c + 7cad255 commit 62a0447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operation_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (operation *Operation_Commit) Run() {
operation.tag = "latest"
}
if operation.repo=="" {
operation.repo = "/"
operation.repo = ""
}

operation.nodes.Commit(operation.targets, operation.repo, operation.tag, "")
Expand Down Expand Up @@ -108,8 +108,8 @@ func (instance *Instance) Commit(repo string, tag string, message string) bool {
id := instance.GetContainerName()
config := instance.Config

if (config.Image=="") {
config.Image = instance.Node.GetImageName()
if repo=="" {
repo = instance.Node.GetImageName()
}

options := docker.CommitContainerOptions{
Expand Down

0 comments on commit 62a0447

Please sign in to comment.