Exemplo n.º 1
0
 def destroy(self, wipe=False):
     self.log("destroying instance {}".format(self.subid))
     vultr = Vultr(self.get_api_key())
     try:
         vultr.server_destroy(self.subid)
     except VultrError:
         self.log(
             "An error occurred destroying instance. Assuming it's been destroyed already."
         )
     self.public_ipv4 = None
     self.subid = None