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

config.ini can not be readonly #61

Closed
kfox1111 opened this issue Sep 12, 2019 · 0 comments · Fixed by #69 or #74
Closed

config.ini can not be readonly #61

kfox1111 opened this issue Sep 12, 2019 · 0 comments · Fixed by #69 or #74

Comments

@kfox1111
Copy link

root@pacifica-cli-75f9f9c8fd-2qj5n:/usr/src/app# pacifica-cli upload --dry-run entrypoint.sh
Traceback (most recent call last):
File "/usr/local/bin/pacifica-cli", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/pacifica/cli/main.py", line 144, in main
args.func(args, config_data)
File "/usr/local/lib/python3.6/site-packages/pacifica/cli/methods.py", line 178, in upload
md_update = query(args, interface_data)
File "/usr/local/lib/python3.6/site-packages/pacifica/cli/methods.py", line 185, in query
global_ini = generate_global_config()
File "/usr/local/lib/python3.6/site-packages/pacifica/cli/methods.py", line 118, in generate_global_config
save_user_config(global_ini)
File "/usr/local/lib/python3.6/site-packages/pacifica/cli/methods.py", line 41, in save_user_config
global_ini.write(open(user_config, 'w'))
OSError: [Errno 30] Read-only file system: '/root/.pacifica_cli/config.ini'

dmlb2000 added a commit to dmlb2000/pacifica-cli that referenced this issue Jan 30, 2020
This removes the save during the global configparser object
creation. The save should only happen during a
`pacifica-cli configure` command.

Signed-off-by: David Brown <dmlb2000@gmail.com>
dmlb2000 added a commit that referenced this issue Jan 30, 2020
This removes the save during the global configparser object
creation. The save should only happen during a
`pacifica-cli configure` command.

Signed-off-by: David Brown <dmlb2000@gmail.com>
dmlb2000 added a commit to dmlb2000/pacifica-cli that referenced this issue Feb 5, 2020
- Pull pacifica#73 Add Python 3.7 and 3.8 by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#70 Add Version Moodule by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#68 Add JSONSchema Validation by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#66 Add Kerberos/GSSAPI Authentication by [dmlb2000](https://github.com/dmlb2000)
- Fix pacifica#55 Add Basic Authentication Env Vars by [casey-pnnl](https://github.com/casey-pnnl)
- Fix pacifica#52 Add File Not Found Error by [dmlb2000](https://github.com/dmlb2000)
- Fix pacifica#56 Resolve User Logon Always by [dmlb2000](https://github.com/dmlb2000)
- Fix pacifica#53 Add Env/CLI for config.ini by [dmlb2000](https://github.com/dmlb2000)
- Fix pacifica#61 Do not save during global read by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#67 Add Ansible to Travis CI by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#65 Updated Pylint 2.0+ by [dmlb2000](https://github.com/dmlb2000)
- Pull pacifica#64 Remove Python 2.7 by [dmlb2000](https://github.com/dmlb2000)
- Fix pacifica#51 Remove Query Results by [dmlb2000](https://github.com/dmlb2000)

Signed-off-by: David Brown <dmlb2000@gmail.com>
dmlb2000 added a commit that referenced this issue Feb 5, 2020
- Pull #73 Add Python 3.7 and 3.8 by [dmlb2000](https://github.com/dmlb2000)
- Pull #70 Add Version Moodule by [dmlb2000](https://github.com/dmlb2000)
- Pull #68 Add JSONSchema Validation by [dmlb2000](https://github.com/dmlb2000)
- Pull #66 Add Kerberos/GSSAPI Authentication by [dmlb2000](https://github.com/dmlb2000)
- Fix #55 Add Basic Authentication Env Vars by [casey-pnnl](https://github.com/casey-pnnl)
- Fix #52 Add File Not Found Error by [dmlb2000](https://github.com/dmlb2000)
- Fix #56 Resolve User Logon Always by [dmlb2000](https://github.com/dmlb2000)
- Fix #53 Add Env/CLI for config.ini by [dmlb2000](https://github.com/dmlb2000)
- Fix #61 Do not save during global read by [dmlb2000](https://github.com/dmlb2000)
- Pull #67 Add Ansible to Travis CI by [dmlb2000](https://github.com/dmlb2000)
- Pull #65 Updated Pylint 2.0+ by [dmlb2000](https://github.com/dmlb2000)
- Pull #64 Remove Python 2.7 by [dmlb2000](https://github.com/dmlb2000)
- Fix #51 Remove Query Results by [dmlb2000](https://github.com/dmlb2000)

Signed-off-by: David Brown <dmlb2000@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant