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] git.config_unset KeyError exception #65715

Open
genaumann opened this issue Dec 15, 2023 · 0 comments
Open

[BUG] git.config_unset KeyError exception #65715

genaumann opened this issue Dec 15, 2023 · 0 comments
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@genaumann
Copy link
Contributor

I am trying to use the git.config_unset state.
This state throws the following error:

File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/state.py", line 2423, in call
                  ret = self.states[cdata["full"]](
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 159, in __call__
                  ret = self.loader.run(run_func, *args, **kwargs)
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1245, in run
                  return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1260, in _run_as
                  return _func_or_method(*args, **kwargs)
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1293, in wrapper
                  return f(*args, **kwargs)
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/git.py", line 3050, in config_unset
                  unset = [x for x in pre[key_name] if x not in post[key_name]]
                File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/git.py", line 3050, in <listcomp>
                  unset = [x for x in pre[key_name] if x not in post[key_name]]
              KeyError: 'core.filemode'

The issue is present since years.
See the following issues / PR:

@genaumann genaumann added Bug broken, incorrect, or confusing behavior needs-triage labels Dec 15, 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 needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant