Browse Source

add host id role while modifying mq client to hole role list

Abhishek Kondur 2 years ago
parent
commit
fd9b924357
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mq/dynsec_clients.go

+ 4 - 0
mq/dynsec_clients.go

@@ -16,6 +16,10 @@ func ModifyClient(client *MqClient) error {
 			Rolename: HostGenericRole,
 			Rolename: HostGenericRole,
 			Priority: -1,
 			Priority: -1,
 		},
 		},
+		{
+			Rolename: getHostRoleName(client.ID),
+			Priority: -1,
+		},
 	}
 	}
 
 
 	for i := range client.Networks {
 	for i := range client.Networks {