diff --git a/lxc/remote.go b/lxc/remote.go index 536b38f15a9c..14c07c6316e1 100644 --- a/lxc/remote.go +++ b/lxc/remote.go @@ -431,7 +431,7 @@ func (c *cmdRemoteAdd) run(cmd *cobra.Command, args []string) error { rHost = host rPort = port } else { - rPort = fmt.Sprintf("%d", shared.HTTPSDefaultPort) + rPort = fmt.Sprint(shared.HTTPSDefaultPort) } if rScheme == "unix" {