def verify_fun(lazy_obj, fun):
 if (not fun):
  raise salt.exceptions.SaltInvocationError('Must specify a function to run!\nex: manage.up')
 if (fun not in lazy_obj):
  raise salt.exceptions.CommandExecutionError(lazy_obj.missing_fun_string(fun))

def verify_fun ( lazy_obj , fun ) : if ( not fun ) : raise salt . exceptions . SaltInvocationError ( 'Must specify a function to run!\nex: manage.up' ) if ( fun not in lazy_obj ) : raise salt . exceptions . CommandExecutionError ( lazy_obj . missing_fun_string ( fun ) )
check that the function passed really exists .