in azure-slurm-install/install.py [0:0]
def _accounting_primary(s: InstallSettings) -> None:
"""
Only the primary scheduler should be creating files under
{s.config_dir} for accounting.
"""
if s.secondary_scheduler_name:
secondary_scheduler = ilib.await_node_hostname(
s.config, s.secondary_scheduler_name
)
if not s.acct_enabled:
logging.info("slurm.accounting.enabled is false, skipping this step.")
ilib.file(
f"{s.config_dir}/accounting.conf",
owner=s.slurm_user,
group=s.slurm_grp,
content="AccountingStorageType=accounting_storage/none",
)
return
ilib.file(
f"{s.config_dir}/accounting.conf",
owner=s.slurm_user,
group=s.slurm_grp,
content=f"""