Bläddra i källkod

Merge pull request #571 from dotcloud/569-run_after_rmi-fix

fix run after rmi
Guillaume J. Charmes 12 år sedan
förälder
incheckning
1c5e9f8a88
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      graph.go

+ 1 - 1
graph.go

@@ -63,7 +63,7 @@ func (graph *Graph) restore() error {
 // FIXME: Implement error subclass instead of looking at the error text
 // FIXME: Implement error subclass instead of looking at the error text
 // Note: This is the way golang implements os.IsNotExists on Plan9
 // Note: This is the way golang implements os.IsNotExists on Plan9
 func (graph *Graph) IsNotExist(err error) bool {
 func (graph *Graph) IsNotExist(err error) bool {
-	return err != nil && strings.Contains(err.Error(), "does not exist")
+	return err != nil && (strings.Contains(err.Error(), "does not exist") || strings.Contains(err.Error(), "No such"))
 }
 }
 
 
 // Exists returns true if an image is registered at the given id.
 // Exists returns true if an image is registered at the given id.