Beispiel #1
0
 def get_nodes(self):
     """Makes an Linode API call to get the list of nodes."""
     try:
         for node in Linode.search(status=Linode.STATUS_RUNNING):
             self.add_node(node)
     except chube_api.linode_api.ApiError as e:
         sys.exit("Looks like Linode's API is down:\n %s" % e)
Beispiel #2
0
 def get_nodes(self):
     """Makes an Linode API call to get the list of nodes."""
     try:
         for node in Linode.search(status=Linode.STATUS_RUNNING):
             self.add_node(node)
     except chube_api.linode_api.ApiError as e:
         sys.exit("Looks like Linode's API is down:\n %s" % e)
Beispiel #3
0
 def get_node(self, linode_id):
     """Gets details about a specific node."""
     try:
         return Linode.find(api_id=linode_id)
     except chube_api.linode_api.ApiError, e:
         print "Looks like Linode's API is down:"
         print
         print e
         sys.exit(1)
Beispiel #4
0
 def get_node(self, linode_id):
     """Gets details about a specific node."""
     try:
         return Linode.find(api_id=linode_id)
     except chube_api.linode_api.ApiError, e:
         print "Looks like Linode's API is down:"
         print
         print e
         sys.exit(1)
Beispiel #5
0
 def get_node(self, linode_id):
     """Gets details about a specific node."""
     try:
         return Linode.find(api_id=linode_id)
     except chube_api.linode_api.ApiError as e:
         sys.exit("Looks like Linode's API is down:\n%s" % e)
Beispiel #6
0
 def get_node(self, linode_id):
     """Gets details about a specific node."""
     try:
         return Linode.find(api_id=linode_id)
     except chube_api.linode_api.ApiError as e:
         sys.exit("Looks like Linode's API is down:\n%" % e)