Exemplo n.º 1
0
 def do_sync(self, args):
     """
     Asks cloudmonkey to discovery and sync apis available on user specified
     CloudStack host server which has the API discovery plugin, on failure
     it rollbacks last datastore or api precached datastore.
     """
     response = self.make_request("listApis")
     self.apicache = monkeycache(response)
     savecache(self.apicache, self.cache_file)
     self.loadcache()
Exemplo n.º 2
0
 def do_sync(self, args):
     """
     Asks cloudmonkey to discovery and sync apis available on user specified
     CloudStack host server which has the API discovery plugin, on failure
     it rollbacks last datastore or api precached datastore.
     """
     response = self.make_request("listApis")
     self.apicache = monkeycache(response)
     if response is None:
         monkeyprint("Failed to sync apis, check your config")
         return
     savecache(self.apicache, self.cache_file)
     self.loadcache()
Exemplo n.º 3
0
 def do_sync(self, args):
     """
     Asks cloudmonkey to discovery and sync apis available on user specified
     CloudStack host server which has the API discovery plugin, on failure
     it rollbacks last datastore or api precached datastore.
     """
     response = self.make_request("listApis")
     if not response:
         monkeyprint("Failed to sync apis, please check your config?")
         monkeyprint("Note: `sync` requires api discovery service enabled" + " on the CloudStack management server")
         return
     self.apicache = monkeycache(response)
     savecache(self.apicache, self.cache_file)
     monkeyprint("%s APIs discovered and cached" % self.apicache["count"])
     self.loadcache()
Exemplo n.º 4
0
 def do_sync(self, args):
     """
     Asks cloudmonkey to discovery and sync apis available on user specified
     CloudStack host server which has the API discovery plugin, on failure
     it rollbacks last datastore or api precached datastore.
     """
     response = self.make_request("listApis")
     if not response:
         monkeyprint("Failed to sync apis, please check your config?")
         monkeyprint("Note: `sync` requires api discovery service enabled" +
                     " on the CloudStack management server")
         return
     self.apicache = monkeycache(response)
     savecache(self.apicache, self.cache_file)
     monkeyprint("%s APIs discovered and cached" % self.apicache["count"])
     self.loadcache()