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
ini.options_present will crash if there is nothing to change #43388
Comments
@ikoruk Thanks for the report. I haven't been able to reproduce this issue so I suspect it's only happening on MacOS. Have you managed to reproduce it anywhere else? |
I can reproduce using Ubuntu Xenial (using 2017.7.1 installed through pip). Doing as described I get the following stacktrace when no changes need to be applied to the file:
Here you can see my versions report:
I also managed to reproduce using docker with debian and alpine. Here are the 2 Dockerfiles that I used:
|
i get very same error on ubuntu 16.04 ini.options_present fails when there is no changes Salt: 2017.7.1
Dependency Versions:
cffi: 1.5.2
cherrypy: 3.2.3
dateutil: 2.4.2
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.8
libgit2: 0.24.0
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: 0.24.0
Python: 2.7.12 (default, Nov 19 2016, 06:48:10)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: Ubuntu 16.04 xenial
locale: UTF-8
machine: x86_64
release: 4.4.0-1031-aws
system: Linux
version: Ubuntu 16.04 xenial also looks like problem has been fixed: 9478729 |
Good for me. |
Description of Issue/Question
When running ini.options_present on MacOS, if the keys are different or don't exist, the command will work as expected. However, when running again with no changes needed it crashes with this trace:
Setup
Steps to Reproduce Issue
$
touch ~/test.ini
Then using
salt-call
on the sls above, first time it is successful. Second time the crash as above.Versions Report
The text was updated successfully, but these errors were encountered: