OpenSecurity/bin/opensecurityd.py
changeset 46 f659d8fb57a8
parent 43 7c2e34bcdf3d
child 54 59f1d824a070
     1.1 --- a/OpenSecurity/bin/opensecurityd.py	Wed Dec 11 14:49:34 2013 +0100
     1.2 +++ b/OpenSecurity/bin/opensecurityd.py	Thu Jan 09 10:44:42 2014 +0100
     1.3 @@ -81,10 +81,11 @@
     1.4      """OpenSecurity '/device_change' handler"""
     1.5      
     1.6      def GET(self):
     1.7 -        new_ip = gvm_mgr.handleDeviceChange()
     1.8 -        if new_ip != None:
     1.9 -            gvm_mgr.mapNetworkDrive('h:', '\\\\' + new_ip + '\\USB', None, None)
    1.10 -        return "os_device_change"
    1.11 +        try:
    1.12 +            new_ip = gvm_mgr.handleDeviceChange()
    1.13 +            return new_ip
    1.14 +        except:
    1.15 +            raise web.internalerror()
    1.16  
    1.17          
    1.18  class os_browsing:
    1.19 @@ -96,7 +97,6 @@
    1.20      def GET(self):
    1.21          try:
    1.22              browsingVM = gvm_mgr.handleBrowsingRequest()
    1.23 -            gvm_mgr.startVM(browsingVM)
    1.24              return browsingVM
    1.25          except:
    1.26              raise web.internalerror()