@lru_cache(1)
def _containers_from_deployment(deployment):
 results = []
 for node in deployment.nodes.itervalues():
  for application in node.applications.values():
   results.append(container_configuration_response(application, node.uuid))
 return results

@ lru_cache ( 1 ) def _containers_from_deployment ( deployment ) : results = [ ] for node in deployment . nodes . itervalues ( ) : for application in node . applications . values ( ) : results . append ( container_configuration_response ( application , node . uuid ) ) return results
extract the containers from the supplied deployment instance .