code: def halt_running():
      '''Halts all running servers'''
      vultr = Vultr(API_KEY)
  
      try:
              serverList = vultr.server.list()
              #logging.info('Listing servers:\n%s', dumps(
              #serverList, indent=2
          #))
      except VultrError as ex:
          logging.error('VultrError: %s', ex)
  
      for serverID in serverList:
          if serverList[serverID]['power_status'] == 'running':
              logging.info(serverList[serverID]['label'] + " will be gracefully shutdown.")
              vultr.server.halt(serverIDf halt_running():
      '''Halts all running servers'''
      vultr = Vultr(API_KEY)
  
      try:
              serverList = vultr.server.list()
              #logging.info('Listing servers:\n%s', dumps(
              #serverList, indent=2
          #))
      except VultrError as ex:
          logging.error('VultrError: %s', ex)
  
      for serverID in serverList:
          if serverList[serverID]['power_status'] == 'running':
              logging.info(serverList[serverID]['label'] + " will be gracefully shutdown.")
              vultr.server.halt(serverID)
docs: Halts all running servers