diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-11-20 18:48:31 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-12-02 08:29:41 -1000 |
commit | c608e8a70de5ff2ee151abff399ce4928cdfc0c1 (patch) | |
tree | ee30b248562c0fdd0d230bdeafd3e61207dea0b1 | |
parent | ff36cd976ebfc5817957a9c516090af53ad1ebae (diff) | |
download | anaconda-c608e8a70de5ff2ee151abff399ce4928cdfc0c1.tar.gz anaconda-c608e8a70de5ff2ee151abff399ce4928cdfc0c1.tar.xz anaconda-c608e8a70de5ff2ee151abff399ce4928cdfc0c1.zip |
In addSnap(), check snapshots for data key before continuing (#433824)
data may not exist in the snapshots hash. If it isn't there, return
to caller.
-rw-r--r-- | partitions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py index a9b658e8e..74a9e117a 100644 --- a/partitions.py +++ b/partitions.py @@ -1756,6 +1756,8 @@ class Partitions: lvm_parent_deletes = [] tmp = {} def addSnap(name, vg): + if not snapshots.has_key(name): + return snaps = snapshots[name] for snap, snapvg in snaps: addSnap(snap, snapvg) |