File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
src/ansys/fluent/core/launcher Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -123,15 +123,6 @@ def dict_to_str(dict: dict) -> str:
123
123
"""Converts the dict to string while hiding the 'environment' argument from the dictionary,
124
124
if the environment variable 'PYFLUENT_HIDE_LOG_SECRETS' is '1'.
125
125
This is useful for logging purposes, to avoid printing sensitive information such as license server details.
126
-
127
- Parameters
128
- ----------
129
- dict : dict
130
- The container dictionary to be converted to string.
131
- Returns
132
- -------
133
- string
134
- Nicely formatted string representation of the dictionary, with the 'environment' key removed if hiding secrets.
135
126
"""
136
127
137
128
if "environment" in dict and os .getenv ("PYFLUENT_HIDE_LOG_SECRETS" ) == "1" :
Original file line number Diff line number Diff line change @@ -657,11 +657,11 @@ def test_app_utilities_new_and_old(mixing_elbow_settings_session):
657
657
658
658
assert not solver ._app_utilities .is_solution_data_available ()
659
659
660
- tmp_dir = tempfile .mkdtemp (dir = pyfluent .EXAMPLES_PATH )
660
+ tmp_path = tempfile .mkdtemp (dir = pyfluent .EXAMPLES_PATH )
661
661
662
662
# when running in a container, only the randomly generated folder name will be seen
663
663
# the full paths will be different between host and container
664
- tmp_folder = Path (tmp_dir ).parts [- 1 ]
664
+ tmp_folder = Path (tmp_path ).parts [- 1 ]
665
665
666
666
solver .chdir (tmp_folder )
667
667
You can’t perform that action at this time.
0 commit comments