[PATCH] In addSnap(), check snapshots for data key before continuing (#433824)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



data may not exist in the snapshots hash.  If it isn't there, return
to caller.
---
 partitions.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/partitions.py b/partitions.py
index a9b658e..74a9e11 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)
-- 
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux