Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eKatchko committed Dec 11, 2019
1 parent 33ce632 commit 2d5e1c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,14 @@ def __init__(self, config):
"floating_ip_network"
]
self.AVAIALABILITY_ZONE = cfg["openstack_connection"]["availability_zone"]
# try to initialize forc connection
try:
self.RE_BACKEND_URL = cfg["forc"]["forc_url"]
self.FORC_API_KEY = os.environ["FORC_API_KEY"]
self.logger.info(msg="Forc-Backend url loaded: {0}".format(self.RE_BACKEND_URL))
except Exception as e:
self.logger.exception(e)
self.logger.info("Forc-Backend url not loaded.")
self.logger.info("Forc-Backend not loaded.")
self.RE_BACKEND_URL = None
self.FORC_API_KEY = None
if self.USE_GATEWAY:
Expand Down
10 changes: 5 additions & 5 deletions VirtualMachineService/ancon/Playbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class Playbook(object):
PLAYBOOK_FAILED = "PLAYBOOK_FAILED"

def __init__(self, ip, port, playbooks_information, osi_private_key, public_key, logger, pool):
self.redis = redis.Redis(connection_pool=pool)
self.yaml_exec = ruamel.yaml.YAML()
self.vars_files = []
self.tasks = []
self.redis = redis.Redis(connection_pool=pool) # redis connection
self.yaml_exec = ruamel.yaml.YAML() # yaml writer/reader
self.vars_files = [] # _vars_file.yml to read
self.tasks = [] # task list
self.always_tasks = []
self.logger = logger
self.process = None
self.process = None # init process, returncode, standard output, standard error output
self.returncode = -1
self.stdout = ""
self.stderr = ""
Expand Down

0 comments on commit 2d5e1c2

Please sign in to comment.