Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed May 6, 2024
1 parent 8a265da commit 913241d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bibigrid/core/actions/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,13 @@ def __init__(self, providers, configurations, config_path, log, debug=False, clu
self.log.debug("Keyname: %s", self.key_name)

def create_defaults(self):
self.log.debug("Creating default files")
if not self.configurations[0].get("customAnsibleCfg", False) or not os.path.isfile(a_rp.ANSIBLE_CFG_PATH):
self.log.debug("Copying ansible.cfg")
shutil.copy(a_rp.ANSIBLE_CFG_DEFAULT_PATH, a_rp.ANSIBLE_CFG_PATH)
if not self.configurations[0].get("customSlurmConf", False) or not os.path.isfile(
a_rp.SLURM_CONF_TEMPLATE_PATH):
self.log.debug("Copying slurm.conf")
shutil.copy(a_rp.SLURM_CONF_TEMPLATE_DEFAULT_PATH, a_rp.SLURM_CONF_TEMPLATE_PATH)

def generate_keypair(self):
Expand Down

0 comments on commit 913241d

Please sign in to comment.