def populate_filter_properties(filter_properties, host_state):
 if isinstance(host_state, dict):
  host = host_state['host']
  nodename = host_state['nodename']
  limits = host_state['limits']
 else:
  host = host_state.host
  nodename = host_state.nodename
  limits = host_state.limits
 _add_retry_host(filter_properties, host, nodename)
 if (not filter_properties.get('force_hosts')):
  filter_properties['limits'] = limits

def populate_filter_properties ( filter_properties , host_state ) : if isinstance ( host_state , dict ) : host = host_state [ 'host' ] nodename = host_state [ 'nodename' ] limits = host_state [ 'limits' ] else : host = host_state . host nodename = host_state . nodename limits = host_state . limits _add_retry_host ( filter_properties , host , nodename ) if ( not filter_properties . get ( 'force_hosts' ) ) : filter_properties [ 'limits' ] = limits
add additional information to the filter properties after a node has been selected by the scheduling process .