Skip to content

Commit

Permalink
Fix typo in create_lmodsitepackage.py
Browse files Browse the repository at this point in the history
Current typo results in the following problem
```bash
[[email protected] ~]$ ml

Currently Loaded Modules:
  1) StdEnv (S)   2) EESSI/2023.06

  Where:
   S:  Module is Sticky, requires --force to unload or purge

 

[ritop@login ~]$ module purge
/usr/bin/lua: /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:21: variable 'False' is not declared
stack traceback:
        [C]: in function 'error'
        /cluster/installations/lmod/lmod/libexec/../tools/strict.lua:36: in function </cluster/installations/lmod/lmod/libexec/../tools/strict.lua:34>
        /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:21: in function 'from_eessi_prefix'
        /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:189: in function </cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:185>
        (tail call): ?
        /cluster/installations/lmod/lmod/libexec/Master.lua:381: in function 'load'
        /cluster/installations/lmod/lmod/libexec/MasterControl.lua:1009: in function 'load'
        /cluster/installations/lmod/lmod/libexec/Master.lua:773: in function 'reload_sticky'
        /cluster/installations/lmod/lmod/libexec/MasterControl.lua:1120: in function 'unload_usr'
        /cluster/installations/lmod/lmod/libexec/cmdfuncs.lua:496: in function 'Purge'
        /cluster/installations/lmod/lmod/libexec/cmdfuncs.lua:473: in function 'cmd'
        /cluster/installations/lmod/lmod/libexec/lmod:512: in function 'main'
        /cluster/installations/lmod/lmod/libexec/lmod:570: in main chunk
        [C]: ?
```
  • Loading branch information
ocaisa authored Sep 10, 2024
1 parent 66219a9 commit 74a3713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_lmodsitepackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-- If EESSI_PREFIX wasn't defined, we cannot check if this module was from the EESSI environment
-- In that case, we assume it isn't, otherwise EESSI_PREFIX would (probably) have been set
if eessi_prefix == nil then
return False
return false
else
-- NOTE: exact paths for site so may need to be updated later.
-- See https://github.com/EESSI/software-layer/pull/371
Expand Down

0 comments on commit 74a3713

Please sign in to comment.