diff --git a/.github/workflows/htcondor-collector.yaml b/.github/workflows/htcondor-collector.yaml index 1043abb1d..529a5a56f 100644 --- a/.github/workflows/htcondor-collector.yaml +++ b/.github/workflows/htcondor-collector.yaml @@ -41,7 +41,7 @@ jobs: - name: Submit test job run: | docker exec -u submituser -w /home/submituser htcondor-submit-1 \ - bash -c "echo -e \"executable=/bin/sleep\narguments=2\n+VoName=testgroup\nqueue\" > job \ + bash -c "echo -e \"executable=/bin/sleep\narguments=2\n+VoName=\\\"testgroup\\\"\nqueue\" > job \ && condor_submit job" - name: Wait for job and collector run: | diff --git a/collectors/htcondor/src/auditor_htcondor_collector/collector.py b/collectors/htcondor/src/auditor_htcondor_collector/collector.py index e5e074f20..017af33ff 100644 --- a/collectors/htcondor/src/auditor_htcondor_collector/collector.py +++ b/collectors/htcondor/src/auditor_htcondor_collector/collector.py @@ -188,6 +188,9 @@ def _generate_components(self, job: dict) -> List[Component]: components = [] for component in self.config.components: amount = get_value(component, job) + self.logger.debug( + f"Got amount {amount!r} ({type(amount)}) for component {component!r}." + ) if amount is not None: try: # AUDITOR expects int-values for components @@ -206,7 +209,7 @@ def _generate_components(self, job: dict) -> List[Component]: components.append(comp) else: self.logger.warning( - f"Could not get value for component {component['name']!r} " + f"Could not get value for component {component['name']!r} ({component!r}) " f"for job {job['GlobalJobId']!r}." ) raise ValueError