Skip to content

Commit 7ce6958

Browse files
authored
CCDB-API: tokens are handled differently on GRID (#4853)
* CCDB-API: tokens are handled differently on GRID
1 parent 2776f73 commit 7ce6958

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CCDB/src/CcdbApi.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@ bool CcdbApi::checkAlienToken() const
656656
// a somewhat weird construction to programmatically find out if we
657657
// have a GRID token; Can be replaced with something more elegant once
658658
// alien-token-info does not ask for passwords interactively
659+
if (getenv("JALIEN_TOKEN_CERT")) {
660+
return true;
661+
}
659662
auto returncode = system("timeout 1s timeout 1s alien-token-info &> /dev/null");
660663
return returncode == 0;
661664
}

0 commit comments

Comments
 (0)