From 631fec593b32d537bc87f993baf3ad8248074f37 Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Tue, 28 Nov 2023 17:38:46 +0100 Subject: [PATCH] Fix wrong brackets --- CONTRIBUTORS | 2 +- docs/source/changelog.rst | 4 ++-- tardis/adapters/sites/moab.py | 4 ++-- tests/adapters_t/sites_t/test_moab.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c68f8447..73e5bb00 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -10,8 +10,8 @@ ubdsv Rene Caspart Leon Schuhmacher R. Florian von Cube -mschnepf Benjamin Rottler +mschnepf Alexander Haas <104835302+haasal@users.noreply.github.com> mschnepf Dirk Sammel diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index f11fe781..ea3910e3 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,4 +1,4 @@ -.. Created by changelog.py at 2023-11-25, command +.. Created by changelog.py at 2023-11-28, command '/Users/giffler/.cache/pre-commit/repor6pnmwlm/py_env-python3.10/bin/changelog docs/source/changes compile --categories Added Changed Fixed Security Deprecated --output=docs/source/changelog.rst' based on the format of 'https://keepachangelog.com/' @@ -6,7 +6,7 @@ CHANGELOG ######### -[Unreleased] - 2023-11-25 +[Unreleased] - 2023-11-28 ========================= Changed diff --git a/tardis/adapters/sites/moab.py b/tardis/adapters/sites/moab.py index fd71dbbd..9e60d9a5 100644 --- a/tardis/adapters/sites/moab.py +++ b/tardis/adapters/sites/moab.py @@ -31,8 +31,8 @@ async def showq( *resource_attributes: Tuple[AttributeDict, ...], executor: Executor ) -> Iterable[Mapping]: - showq_active_cmd = "showq --xml -w user=$(USER)" - showq_completed_cmd = "showq -c --xml -w user=$(USER)" + showq_active_cmd = "showq --xml -w user=${USER}" + showq_completed_cmd = "showq -c --xml -w user=${USER}" logger.debug("Moab status update is running.") combined_response_stdout = "" for cmd in (showq_active_cmd, showq_completed_cmd): diff --git a/tests/adapters_t/sites_t/test_moab.py b/tests/adapters_t/sites_t/test_moab.py index 5a0c104a..3247f0fb 100644 --- a/tests/adapters_t/sites_t/test_moab.py +++ b/tests/adapters_t/sites_t/test_moab.py @@ -294,8 +294,8 @@ def test_resource_state_translation(self): self.mock_executor.return_value.run_command.assert_has_calls( [ - call("showq --xml -w user=$(USER)"), - call("showq -c --xml -w user=$(USER)"), + call("showq --xml -w user=${USER}"), + call("showq -c --xml -w user=${USER}"), ] ) self.mock_executor.reset_mock()