Fix layer purging
This commit is contained in:
parent
e867ee7e64
commit
119636f94e
@ -251,7 +251,8 @@ class PkgMgr:
|
|||||||
image = self.installed_packages['apps'][app]['containers'][container]['image']
|
image = self.installed_packages['apps'][app]['containers'][container]['image']
|
||||||
for layer in self.installed_packages['images'][image]['layers']:
|
for layer in self.installed_packages['images'][image]['layers']:
|
||||||
if layer in layers:
|
if layer in layers:
|
||||||
del layers[layer]
|
# Layer is still used, remove from set of layers to be purged
|
||||||
|
layers.remove(layer)
|
||||||
for layer in layers:
|
for layer in layers:
|
||||||
self.purge_layer(layer)
|
self.purge_layer(layer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user