Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

Fix channels opening when services are added/restarted. #8

Merged

Conversation

nmengin
Copy link
Contributor

@nmengin nmengin commented Sep 7, 2017

Services management (#6 and #7 ) feature show that closing channels after all actions don't allow starting multiple services or restarting project.

This PR allows to close channels only if all project services are deleted and allows to recreate environment if necessary.

compose.go Outdated
// Check if containers exist in the desirated state for the given services
func (p *Project) existContainers(stateFiltered project.State, services ...string) (bool, error) {
existingContainers := false
var err error = nil

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should drop = nil from declaration of var err; it is the zero value

@codecov
Copy link

codecov bot commented Sep 7, 2017

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is 0%.

@@         Coverage Diff          @@
##           master    #8   +/-   ##
====================================
  Coverage       0%    0%           
====================================
  Files           1     1           
  Lines         125   148   +23     
====================================
- Misses        125   148   +23

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@vdemeester vdemeester merged commit 4a33a16 into libkermit:master Sep 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants