def container_configuration_response(application, node):
 result = {'node_uuid': unicode(node), 'name': application.name}
 result.update(ApplicationMarshaller(application).convert())
 if (u'volume' in result):
  volume = result.pop(u'volume')
  result[u'volumes'] = [{u'dataset_id': volume[u'dataset_id'], u'mountpoint': volume[u'mountpoint']}]
 if (application.cpu_shares is not None):
  result['cpu_shares'] = application.cpu_shares
 if (application.memory_limit is not None):
  result['memory_limit'] = application.memory_limit
 if (application.command_line is not None):
  result['command_line'] = list(application.command_line)
 return result

def container_configuration_response ( application , node ) : result = { 'node_uuid' : unicode ( node ) , 'name' : application . name } result . update ( ApplicationMarshaller ( application ) . convert ( ) ) if ( u'volume' in result ) : volume = result . pop ( u'volume' ) result [ u'volumes' ] = [ { u'dataset_id' : volume [ u'dataset_id' ] , u'mountpoint' : volume [ u'mountpoint' ] } ] if ( application . cpu_shares is not None ) : result [ 'cpu_shares' ] = application . cpu_shares if ( application . memory_limit is not None ) : result [ 'memory_limit' ] = application . memory_limit if ( application . command_line is not None ) : result [ 'command_line' ] = list ( application . command_line ) return result
return a container dict which confirms to /v1/endpoints .