From 3148a2fa4a990096873c5473f1c342a6a097a14c Mon Sep 17 00:00:00 2001 From: Martin Bukatovic Date: Sat, 15 May 2021 15:22:48 +0200 Subject: [PATCH] fix conversion from int64 to string Fixes https://github.com/ceph/cn/issues/135 --- cmd/start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/start.go b/cmd/start.go index 046b699..36fbc5f 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -23,6 +23,7 @@ package cmd import ( + "fmt" "log" "os" "runtime" @@ -195,7 +196,7 @@ func runContainer(cmd *cobra.Command, args []string) { if sizeBluestoreBlockToBytes == 0 { log.Fatal("Wrong unit passed: ", getSize(flavor), ". Please refer to https://en.wikipedia.org/wiki/Byte.") } - envs = append(envs, "BLUESTORE_BLOCK_SIZE="+string(sizeBluestoreBlockToBytes)) + envs = append(envs, "BLUESTORE_BLOCK_SIZE="+fmt.Sprint(sizeBluestoreBlockToBytes)) } } if testDev == "blockdev" {