/srv/irclogs.ubuntu.com/2022/08/25/#cloud-init.txt

CorvetteZR1hello.  i'm trying to use wget to download a binary and run it.  to download it, i need to pass a header with a token to auth.  it fails, i get a 400 back from the remote side.  here is my config:  https://dpaste.com/69YQJ59RK20:13
CorvetteZR1seems the remote side does not like the ' ' .  but if i leave it out, then i get a schema syntax error20:14
CorvetteZR1can someone please help with writing the wget line properly?20:14
minimalCorvetteZR1: what ' ' ?21:05
CorvetteZR1around --header in the wget command21:13
minimalthere is no space around --header, there's a "'" before it and a "=" after it21:14
CorvetteZR1ah, that can cause a problem?  interesting...21:28
CorvetteZR1ok, i got it working, but i took a different approach.  instead of using [ , ] format, i just did it as a one liner and wrapped the whole command in ' '.  it's working now :)21:30
minimalCorvetteZR1: no, I didn't mention any problem, I was confused by your explanation of the issue21:30
CorvetteZR1minimal, ah, ok.  issue was that i didn't know how to construct that wget command in cloud-init properly because passing the header which had a : char in it was messing things up.  the ' ' around header fixed one error but caused another21:34
CorvetteZR1anyway, all good now.  thanks for your time :)21:34
=== falcojr1 is now known as falcojr
=== meena5 is now known as meena
=== ryland_ is now known as ryland

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!