def is_old_env():
  env_exists = exists('~/env')
  if not env_exists:
    # So such directory or link.
    return False
  with settings(warn_only=True):
      is_link = run('readlink ~/env')
  if is_link.return_code == 0:
    # This is a symlink. New-style environment.
    return False
  return True
Shutdown a running node.
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/is_old_env--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py/LibvirtNodeDriver.ex_shutdown_node