diff --git a/lib/constants.py b/lib/constants.py
index 90666565009f0f8531382539243c346b3dc3304c..3594d066d81038b4aab52936cdfb54a75cb79b09 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -2074,4 +2074,4 @@ FAKE_OP_MASTER_TURNUP = "OP_CLUSTER_IP_TURNUP"
 FAKE_OP_MASTER_TURNDOWN = "OP_CLUSTER_IP_TURNDOWN"
 
 # Do not re-export imported modules
-del re, _vcsversion, _autoconf
+del re, _vcsversion, _autoconf, socket