Details
-
Bug
-
Resolution: Done
-
Minor
-
None
-
Dundee alpha, beta, RC
-
None
-
Dundee TP3
Description
In TP3 the blktap2.py has exc_info defined on line 810 as:
exc_info = sys.exc_info()
To push generic system errors out to SMlog I assume.
However, sys module is only imported in main.
As the result, when SRCommand calls attach directly the error is thrown. global name 'sys' is not defined'
Should move import sys to the global imports:
--- /root/blktap2.py-tp3 2016-03-21 16:41:49.000000000 +1100 +++ /root/blktap2.py 2016-03-21 15:30:44.000000000 +1100 @@ -43,6 +43,7 @@ import resetvdis import vhdutil import lvhdutil +import sys # For RRDD Plugin Registration from SocketServer import UnixStreamServer @@ -2710,7 +2711,6 @@ if __name__ == '__main__': - import sys prog = os.path.basename(sys.argv[0]) #