Browse Source

Fix nftFound handling in logger.Log call.

cameronts 3 years ago
parent
commit
903a7a65c8
1 changed files with 6 additions and 6 deletions
  1. 6 6
      logic/util.go

+ 6 - 6
logic/util.go

@@ -6,17 +6,17 @@ import (
 	"encoding/base64"
 	"encoding/json"
 	"fmt"
+	"github.com/gravitl/netmaker/database"
+	"github.com/gravitl/netmaker/logger"
+	"github.com/gravitl/netmaker/models"
+	"github.com/gravitl/netmaker/netclient/ncutils"
 	"math/big"
 	"math/rand"
 	"net"
 	"os"
+	"strconv"
 	"strings"
 	"time"
-
-	"github.com/gravitl/netmaker/database"
-	"github.com/gravitl/netmaker/logger"
-	"github.com/gravitl/netmaker/models"
-	"github.com/gravitl/netmaker/netclient/ncutils"
 )
 
 // nfTablesPresent - returns true if nftables is present, false otherwise
@@ -24,7 +24,7 @@ func IsNFTablesPresent() bool {
 	var nftFound bool
 
 	nftFound = FileExists("/etc/nftables.conf")
-	logger.Log(3, "nftables found:", nftFound)
+	logger.Log(3, "nftables found:", strconv.FormatBool(nftFound))
 	return nftFound
 }