Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Studio - clean ContainerLinks of deleted containers #194

Closed
mdutoo opened this issue Mar 21, 2017 · 1 comment
Closed

Docker Studio - clean ContainerLinks of deleted containers #194

mdutoo opened this issue Mar 21, 2017 · 1 comment

Comments

@mdutoo
Copy link

mdutoo commented Mar 21, 2017

else NPE in synchronize() when stopping containers:

index 0dca939..bc588b1 100644
--- a/clouddesigner/org.occiware.clouddesigner.occi.docker.connector/src/org/occiware/clouddesigner/occi/docker/connector/DockerConnector.xtend
+++ b/clouddesigner/org.occiware.clouddesigner.occi.docker.connector/src/org/occiware/clouddesigner/occi/docker/connector/DockerConnector.xtend
@@ -1725,7 +1725,8 @@ abstract class MachineManager extends ComputeStateMachine {
if (compute.links.size > 0) {

                            // Stop the containers 
  •                           compute.links.forEach[elt|(elt.target as ExecutableContainer).stop(StopMethod.GRACEFUL)]
    
  •                           compute.links.filter[elt|elt.target != null] // else NPE
    
  •                                   .forEach[elt|(elt.target as ExecutableContainer).stop(StopMethod.GRACEFUL)]
    
                      }
              }
    
@cgourdin
Copy link
Member

cgourdin commented Dec 1, 2017

null checks are done in docker studio v2.

@cgourdin cgourdin closed this as completed Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants