From 2ac748ed4089a4ab60635e52b3cd2457c83eaf01 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 Signed-off-by: Martin Bukatovic --- cmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/start.go b/cmd/start.go index 046b699..90da825 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -195,7 +195,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="+strconv.FormatInt(sizeBluestoreBlockToBytes, 10)) } } if testDev == "blockdev" {