Browse Source

tag enrollment key

abhishek9686 1 year ago
parent
commit
058338f372
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/nm-quick.sh

+ 1 - 1
scripts/nm-quick.sh

@@ -775,7 +775,7 @@ setup_mesh() {
 
 
 	echo "Obtaining a netmaker enrollment key..."
 	echo "Obtaining a netmaker enrollment key..."
 
 
-	local tokenJson=$(nmctl enrollment_key create --unlimited --networks netmaker)
+	local tokenJson=$(nmctl enrollment_key create --tags netmaker --unlimited --networks netmaker)
 	TOKEN=$(jq -r '.token' <<<${tokenJson})
 	TOKEN=$(jq -r '.token' <<<${tokenJson})
 	if test -z "$TOKEN"; then
 	if test -z "$TOKEN"; then
 		echo "Error creating an enrollment key"
 		echo "Error creating an enrollment key"