def set_shutdown_hook(hook):
  if hook is not None and not callable(hook):
    raise TypeError("hook must be callable, got %s" % hook.__class__)
  global __shutdown_hook
  with __shutdown_mutex:
    old_hook = __shutdown_hook
    __shutdown_hook = hook
  return old_hook
Lists all supported OS types for this cloud.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/runtime/runtime.py/set_shutdown_hook--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.listOsTypes