1. 01 Apr, 2022 1 commit
  2. 30 Mar, 2022 2 commits
  3. 23 Mar, 2022 1 commit
    • Jérome Perrin's avatar
      standalone: strip ansi codes in logs · 3a62e218
      Jérome Perrin authored
      This fixes a bug when the program output contain some ansi code, like
      the \e[0;31m ansi code to display text in color on the terminal. These
      characters are not allowed in XML so if they end up in the XML-RPC
      messages this cause the underlying expat library to complain that the
      stream is not well-formed (invalid token).
      
      Fortunately, supervisor supports this and has a `strip_ansi` option that
      we can set in the config to prevent these problems.
      3a62e218
  4. 22 Mar, 2022 6 commits
  5. 21 Mar, 2022 2 commits
  6. 18 Mar, 2022 1 commit
  7. 16 Mar, 2022 3 commits
  8. 15 Mar, 2022 2 commits
  9. 14 Mar, 2022 8 commits
  10. 11 Mar, 2022 2 commits
  11. 10 Mar, 2022 5 commits
  12. 02 Mar, 2022 1 commit
  13. 01 Mar, 2022 1 commit
  14. 23 Feb, 2022 2 commits
  15. 21 Feb, 2022 1 commit
  16. 17 Feb, 2022 1 commit
  17. 16 Feb, 2022 1 commit
    • Jérome Perrin's avatar
      runpromises: support software releases older than slapos 1.0.118 · 2a90733c
      Jérome Perrin authored
      Before slapos commit a184cca8b (Try to reuse existing file to avoid
      excessive IO on update + other minor optimisations, 2019-06-17), which
      started to be used in profiles in 65acdca0d (Release slapos.cookbook
      (1.0.118), 2019-08-13), the promise plugins did not contain
      
          import sys
          sys.path[0:0] = (..., )
      
      but there was an extra import statement:
      
          import sys
          import json
          sys.path[0:0] = (..., )
      
      slapos.core >= 1.7 was not able to process such promises, because the
      code introspecting these promises assumed that the second node of the
      AST was the assignment, which is incorrect in the old promises because
      it was another import.
      
      To accomodate both cases, use the value from the first assignment.
      
      We also change to use ast.literal_eval for safety.
      2a90733c