old_contents: # Copyright ClusterHQ Limited. See LICENSE file for details.
  
  from twisted.web import server, resource
  from twisted.application import service, internet
  
  from powerstripflocker.adapter import AdapterResource
  
  def getAdapter():
      root = resource.Resource()
  
      v1 = resource.Resource()
      root.putChild("v1", v1)
  
      volume = resource.Resource()
      v1.putChild("volume", volume)
      volume.putChild("volumes", AdapterResource())
  
      v1.putChild("handshake", HandshakeResource())
  
      site = server.Site(root)
      return site
  
  application = service.Application("Powerstrip Flocker Adapter")
  
  adapterServer = internet.TCPServer(9042, getAdapter(), interface='0.0.0.0')
  adapterServer.setServiceParent(application)
  
new_contents: # Copyright ClusterHQ Limited. See LICENSE file for details.
  
  from twisted.web import server, resource
  from twisted.application import service, internet
  
  from powerstripflocker.adapter import AdapterResource, HandshakeResource
  
  def getAdapter():
      root = resource.Resource()
  
      v1 = resource.Resource()
      root.putChild("v1", v1)
  
      volume = resource.Resource()
      v1.putChild("volume", volume)
      volume.putChild("volumes", AdapterResource())
  
      v1.putChild("handshake", HandshakeResource())
  
      site = server.Site(root)
      return site
  
  application = service.Application("Powerstrip Flocker Adapter")
  
  adapterServer = internet.TCPServer(9042, getAdapter(), interface='0.0.0.0')
  adapterServer.setServiceParent(application)
  
subject: fix missing import