[follow-up a] Do not create a copy of the iscsi singleton object

Vratislav Podzimek vpodzime at redhat.com
Wed Oct 7 10:27:41 UTC 2015


It is a singleton and thus it should only exist in one instance.

Related: rhbz#1267944
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 blivet/iscsi.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/iscsi.py b/blivet/iscsi.py
index 6c0d598..12bc6c9 100644
--- a/blivet/iscsi.py
+++ b/blivet/iscsi.py
@@ -149,6 +149,9 @@ class iscsi(object):
     def __call__(self):
         return self
 
+    def __deepcopy__(self, memo_dict):
+        return self
+
     def _getInitiator(self):
         if self._initiator != "":
             return self._initiator
-- 
2.1.0



More information about the anaconda-patches mailing list