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

koan: Error with --update-files: curl: option --output : is unknown #20

Open
plakdawa opened this issue Apr 27, 2016 · 1 comment
Open
Labels

Comments

@plakdawa
Copy link

Received the following error when using koan --update-files (ip and hostname modified below):

# koan --update-files
- looking for Cobbler at http://<ip>:80/cobbler_api
- Auto detected: <hostname>
- template map: {'/var/lib/cobbler/templates/pdit_ntp_conf.template': '/etc/ntp.conf'}
- processing for files to download...
- file: /etc/ntp.conf
- ['/usr/bin/curl', 'http://<ip>/cblr/svc/op/template/system/<hostname>/path/_etc_ntp.conf', '--output ', '/etc/ntp.conf']
curl: option --output : is unknown
curl: try 'curl --help' or 'curl --manual' for more information
command failed (2)

Confirmed that curl works fine by running the command manually. The template was properly rendered.

The version of koan:

# rpm -q koan
koan-2.6.11-7.1.noarch

The system is OracleLinux 7.2 which is binary compatible with RHEL 7.2

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
@atimermann
Copy link

atimermann commented Oct 8, 2016

Fix is quite simple:
In app.py:

I changed here:
cmd = ["/usr/bin/curl", url , "--output ", save_as]
to
cmd = ["/usr/bin/curl", url , "--output", save_as]

@SchoolGuy SchoolGuy added the bug label Jul 31, 2019
@SchoolGuy SchoolGuy added this to Koan Sep 26, 2022
@SchoolGuy SchoolGuy moved this to Bug Reports in Koan Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Bug Reports
Development

No branches or pull requests

3 participants