def default_mappings(machines):
 mappings = {}
 failures = []
 mach = machines[0]
 mappings['ident'] = [mach]
 if (len(machines) > 1):
  machines = machines[1:]
  for machine in machines:
   mappings['ident'].append(machine)
 return (mappings, failures)

def default_mappings ( machines ) : mappings = { } failures = [ ] mach = machines [ 0 ] mappings [ 'ident' ] = [ mach ] if ( len ( machines ) > 1 ) : machines = machines [ 1 : ] for machine in machines : mappings [ 'ident' ] . append ( machine ) return ( mappings , failures )
returns a simple mapping in which all machines are assigned to the same key .