Permalink
Browse files

When unpropagating we should validate unpropagation, not propagation

  • Loading branch information...
1 parent e4473ea commit 77fab4d76085a028fe7a9f5273a8ef2be378177f @priteau priteau committed with labisso Nov 5, 2010
@@ -700,7 +700,10 @@ def _one_imagestr_propagation(self, lf, imgstr, unprop):
self.c.log.debug("partition/HD is specified w/ %s" % schemestring)
adapter = self.adapters[keyword]
- adapter.validate_propagate_source(imgstr)
+ if unprop:
+ adapter.validate_unpropagate_target(imgstr)
+ else:
+ adapter.validate_propagate_source(imgstr)
if unprop:
lf._unpropagate_needed = True

0 comments on commit 77fab4d

Please sign in to comment.