Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/slurm_plugin/computemgtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from datetime import datetime, timezone
from logging.config import fileConfig
from subprocess import CalledProcessError
from tempfile import mkstemp
from tempfile import NamedTemporaryFile

from botocore.config import Config
from common.schedulers.slurm_commands import get_nodes_info
Expand Down Expand Up @@ -55,7 +55,8 @@ class ComputemgtdConfig:
}

def __init__(self, config_file_path):
_, self._local_config_file = mkstemp()
tf = NamedTemporaryFile()
self._local_config_file = tf.name
self._get_config(config_file_path)

def __repr__(self):
Expand Down