Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] file.manage win_inheritance #63857

Open
Selected6280 opened this issue Mar 10, 2023 · 0 comments
Open

[BUG] file.manage win_inheritance #63857

Selected6280 opened this issue Mar 10, 2023 · 0 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Execution-Module State-Module Windows

Comments

@Selected6280
Copy link

Selected6280 commented Mar 10, 2023

Description
I want to manage a file on Windows via Salt.

  file.managed:
    - name: 'C:\ProgramData\test.yml'
    - source: salt:https://blobs/win/test.yml

Output:

    Function: file.managed
        Name: C:\ProgramData\test.yml
      Result: True
     Comment: File C:\ProgramData\test.yml updated
     Started: 13:52:06.200209
    Duration: 109.427 ms
     Changes:
              ----------
              inheritance:
                  True

Permissions are not inherited and file is updated everytime I run the state.

If I execute
salt * file.check_perms 'C:\ProgramData\test.yml'
inheritance is corrected. And the state do work afterwards.

Output:

    ----------
    changes:
        ----------
        inheritance:
            True
    comment:
    name:
        'C:\ProgramData\test.yml'
    result:
        True

Expected behavior
State should set inheritance correct.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
          Salt: 3005.1

Dependency Versions:
          cffi: Not Installed
      cherrypy: unknown
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: 2.0.6
     gitpython: 3.0.7
        Jinja2: 2.10.1
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.6.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: 2.6.1
  pycryptodome: 3.6.1
        pygit2: Not Installed
        Python: 3.8.10 (default, Nov 14 2022, 12:59:47)
  python-gnupg: 0.4.5
        PyYAML: 5.3.1
         PyZMQ: 20.0.0
         smmap: 2.0.5
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.2

System Versions:
          dist: ubuntu 20.04 focal
        locale: utf-8
       machine: x86_64
       release: 5.4.0-144-generic
        system: Linux
       version: Ubuntu 20.04 focal

Additional context
Add any other context about the problem here.

@Selected6280 Selected6280 added Bug broken, incorrect, or confusing behavior needs-triage labels Mar 10, 2023
@twangboy twangboy self-assigned this Mar 29, 2023
@twangboy twangboy added this to the Chlorine v3007.0 milestone Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Execution-Module State-Module Windows
Projects
None yet
Development

No branches or pull requests

3 participants