saltstack-formulas/kubernetes-formula

[BUG] [Windows] kubernetes.clean fails [yaml]

noelmcloughlin opened this issue · 1 comments


Bug details

Pillars/Topfile

No pillars.

$ cat /cygdrive/c/salt/srv/salt/top.sls
base:
  '*':
    - kubernetes.clean

Describe the bug

Windows paths cause Yaml list rendering failure on kubernetes.clean state.

$ salt-call.bat state.highstate --local
[ERROR   ] Error encountered during module reload. Modules were not reloaded.
[CRITICAL] Rendering SLS 'base:kubernetes.k3s.binary.clean' failed: found unknown escape character
[CRITICAL] Rendering SLS 'base:kubernetes.devtools.binary.clean' failed: found unknown escape character
[CRITICAL] Rendering SLS 'base:kubernetes.devtools.archive.clean' failed: found unknown escape character
[CRITICAL] Rendering SLS 'base:kubernetes.sigs.binary.clean' failed: found unknown escape character
[CRITICAL] Rendering SLS 'base:kubernetes.sigs.archive.clean' failed: found unknown escape character
local:
    Data failed to compile:
----------
    Rendering SLS 'base:kubernetes.k3s.binary.clean' failed: found unknown escape character
----------
    Rendering SLS 'base:kubernetes.devtools.binary.clean' failed: found unknown escape character
----------
    Rendering SLS 'base:kubernetes.devtools.archive.clean' failed: found unknown escape character
----------
    Rendering SLS 'base:kubernetes.sigs.binary.clean' failed: found unknown escape character
----------
    Rendering SLS 'base:kubernetes.sigs.archive.clean' failed: found unknown escape character

Additional context

$ salt-call.bat --versions-report --local
Salt Version:
           Salt: 3000.3

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: 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 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.19041  Multiprocessor Free