Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
  • Loading branch information
gabriel-samfira committed Jun 7, 2023
1 parent 51f8153 commit f3f2adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kola/tests/misc/cloudinit.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func CloudInitMultipartMime(c cluster.TestCluster) {

// All files should have the same content (42). These files should have been created by the cloud-config part
// that declares the write_files option.
c.MustSSH(m, "for $file in /tmp/kola_*; do OUT=$(cat $file); if [ $OUT != 42 ]; then exit 1; fi; done")
c.MustSSH(m, `for f in $(ls /tmp/kola_*); do OUT=$(cat $f); if [ "$OUT" != 42 ]; then exit 1; fi; done`)
// Check that the x-shellscript part was executed.
c.MustSSH(m, "test -f /coreos-cloudinit_multipart.txt")
c.MustSSH(m, "test -f /kola_undercover")
Expand Down
2 changes: 1 addition & 1 deletion platform/conf/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ func (c *Conf) copyKeysScript(keys []*agent.Key) {
func (c *Conf) copyKeysMultipartMime(keys []*agent.Key) {
keysAsStrings := keysToStrings(keys)
header := textproto.MIMEHeader{
"Content-Type": []string{"text/plain; charset=\"us-ascii\""},
"Content-Type": []string{"text/cloud-config; charset=\"us-ascii\""},
"MIME-Version": []string{"1.0"},
"Content-Transfer-Encoding": []string{"7bit"},
"Content-Disposition": []string{"attachment; filename=\"testing-keys.yaml\""},
Expand Down

0 comments on commit f3f2adf

Please sign in to comment.