saltstack / saltstack/salt

Windows --force-color sometimes works and sometime failed

Open
#56,563 1 comment 0 reactions 1 assignee View on GitHub

@twangboy is already working on this.

Since Apr 17, 2020.

bug Confirmed severity-low
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description of Issue

I use salt-call state.apply --force-color on Windows.

Sometimes I have colors and sometimes not:

?[0;32mlocal:?[0;0m
?[0;36m
Summary for local
--------------?[0;0m
?[0;32mSucceeded: 100?[0;0m
?[0;36mFailed:      0?[0;0m
?[0;36m--------------
Total states run:     100?[0;0m
?[0;36mTotal run time:    32.332 s?[0;0m
Steps to Reproduce Issue
$ salt-call state.apply --force-color
Versions Report (3000.1)
           Salt: 3000-n/a-5c450f3b

Dependency Versions:
           cffi: 1.12.2
       cherrypy: 17.4.1
       dateutil: 2.8.0
      docker-py: Not Installed
          gitdb: 2.0.5
      gitpython: 2.1.10
         Jinja2: 2.10.1
        libgit2: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: 2.19
       pycrypto: Not Installed
   pycryptodome: 3.8.1
         pygit2: Not Installed
         Python: 3.5.4 (v3.5.4:3f56838, Aug  8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]
   python-gnupg: 0.4.4
         PyYAML: 5.1.2
          PyZMQ: 18.0.1
          smmap: 2.0.5
        timelib: 0.2.4
        Tornado: 4.5.3
            ZMQ: 4.3.1

System Versions:
           dist:
         locale: cp1252
        machine: AMD64
        release: 10
         system: Windows
        version: 10 10.0.18362 SP0 Multiprocessor Free

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.