Skip to content

Commit dd9badb

Browse files
committed
Load the WMAgent environment before trying to look up its version
1 parent 32dfeb7 commit dd9badb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/pypi/wmagent/bin/manage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
### The main manage script for WMAgent
4-
WMCoreVersion=$(python -c "from WMCore import __version__ as WMCoreVersion; print(WMCoreVersion)")
5-
63
# Load common definitions and environment:
74
source $WMA_DEPLOY_DIR/bin/manage-common.sh
85
source $WMA_ENV_FILE
96

7+
### The main manage script for WMAgent
8+
WMCoreVersion=$(python -c "from WMCore import __version__ as WMCoreVersion; print(WMCoreVersion)")
9+
1010
#
1111
# Global variables etc
1212
#

0 commit comments

Comments
 (0)