from cloudmesh.util.encryptdata import decrypt from cloudmesh.util.ssh import ssh_execute import traceback import time import sys # ---------------------------------------------------------------------- # SETTING UP A LOGGER # ---------------------------------------------------------------------- log = LOGGER(__file__) try: from cloudmesh.iaas.azure.cm_compute import azure except: log.warning("AZURE NOT ENABLED") try: from cloudmesh.iaas.aws.cm_compute import aws except: log.warning("AWS NOT ENABLED") class cm_MongoBase(object): def __init__(self): self.cm_type = "overwriteme" self.connect() def connect(self): self.db_mongo = get_mongo_db(self.cm_type)
from cloudmesh.util.stopwatch import StopWatch # from pprint import pprint import traceback from cloudmesh.util.encryptdata import decrypt import time # ---------------------------------------------------------------------- # SETTING UP A LOGGER # ---------------------------------------------------------------------- log = LOGGER(__file__) try: from cloudmesh.iaas.azure.cm_compute import azure except: log.warning("AZURE NOT ENABLED") try: from cloudmesh.iaas.aws.cm_compute import aws except: log.warning("Amazon NOT ENABLED") class cm_MongoBase(object): def __init__(self): self.cm_type = "overwriteme" self.connect() def connect(self): self.db_mongo = get_mongo_db(self.cm_type)