def clean(self, args): """ Cleans up the environment """ try: cleanup_cloud_compute(self.__config, self._context) cleanup_default_tenants(self.__config, self._context) cleanup_infrastructure_compute(self.__config, self._context) except (AbiquoException, AuthorizationException), ex: print "Error: %s" % ex.getMessage()
def cleanup(self, args): """ Cleans up the environment. """ context = ContextLoader().load_context() try: cleanup_cloud_compute(context) cleanup_default_tenants(context) cleanup_infrastructure_compute(context) except (AbiquoException, AuthorizationException), ex: print "Error: %s" % ex.getMessage()