Skip to content

[Bug]: salt-call --force-color does not output colors while running in systemd #68736

@drlkf

Description

@drlkf

What happened?

While running salt-call in a systemd service, the --force-color option seems to do nothing:

apt-2 ~ # systemctl cat salt-test
# /etc/systemd/system/salt-test.service
[Service]
Type=oneshot
ExecStart=/usr/bin/salt-call --force-color test.ping

# /etc/systemd/system/service.d/99-failure-report.conf
[Unit]
OnFailure=add-systemd-failure@%n.service
apt-2 ~ # systemctl start salt-test
apt-2 ~ # journalctl -u salt-test | cat -e
Feb 14 22:16:20 apt-2 systemd[1]: Starting salt-test.service...$
Feb 14 22:16:22 apt-2 salt-call[3130821]: local:$
Feb 14 22:16:22 apt-2 salt-call[3130821]:     True$
Feb 14 22:16:22 apt-2 systemd[1]: salt-test.service: Deactivated successfully.$
Feb 14 22:16:22 apt-2 systemd[1]: Finished salt-test.service.$
Feb 14 22:16:22 apt-2 systemd[1]: salt-test.service: Consumed 1.277s CPU time.$

Type of salt install

Official deb

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

debian-12

salt --versions-report output

Salt Version:
          Salt: 3007.13

Python Version:
        Python: 3.10.19 (main, Feb  5 2026, 07:05:38) [GCC 11.2.0]

Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.3
         smmap: Not Installed
       timelib: 0.3.0
       Tornado: 6.5.4
           ZMQ: 4.3.4

Salt Package Information:
  Package Type: onedir

System Versions:
          dist: debian 12.13 bookworm
        locale: utf-8
       machine: x86_64
       release: 6.1.0-40-amd64
        system: Linux
       version: Debian GNU/Linux 12.13 bookworm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions