1.1 --- a/OpenSecurity/bin/opensecurity_client_restful_server.py Thu Jun 26 12:33:55 2014 +0200
1.2 +++ b/OpenSecurity/bin/opensecurity_client_restful_server.py Fri Sep 05 12:28:30 2014 +0100
1.3 @@ -332,7 +332,7 @@
1.4 if path in network_path:
1.5 return drive
1.6 return None
1.7 -
1.8 +
1.9 def mapDrive(drive, networkPath, user, password):
1.10 if (os.path.exists(networkPath)):
1.11 logger.debug(networkPath + " is found...")
1.12 @@ -349,7 +349,7 @@
1.13 return 1
1.14
1.15 mount_lock = threading.Lock()
1.16 -
1.17 +
1.18 # handles netumount request
1.19 class MountNetworkDriveHandler(threading.Thread):
1.20 networkPath = None
1.21 @@ -406,7 +406,7 @@
1.22
1.23 try:
1.24 win32wnet.WNetCancelConnection2(drive, 1, force)
1.25 - logger,info(drive + "successfully unmapped...")
1.26 + logger.info(drive + "successfully unmapped...")
1.27 return 0
1.28 except:
1.29 logger.error("Unmap failed, try again...")