def _pool_hash_and_name(bootstrap_actions):
 for bootstrap_action in bootstrap_actions:
  if (bootstrap_action.name == 'master'):
   args = [arg.value for arg in bootstrap_action.args]
   if ((len(args) == 2) and args[0].startswith('pool-')):
    return (args[0][5:], args[1])
 return (None, None)

def _pool_hash_and_name ( bootstrap_actions ) : for bootstrap_action in bootstrap_actions : if ( bootstrap_action . name == 'master' ) : args = [ arg . value for arg in bootstrap_action . args ] if ( ( len ( args ) == 2 ) and args [ 0 ] . startswith ( 'pool-' ) ) : return ( args [ 0 ] [ 5 : ] , args [ 1 ] ) return ( None , None )
return the hash and pool name for the given cluster .