ziti_edge_sdk; config naming lint (#112)

This commit is contained in:
Michael Quigley 2022-12-14 15:10:45 -05:00
parent 0fe55e8213
commit 8e56117c51
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -11,7 +11,7 @@ import (
"time"
)
func CreateConfig(cfgZId, envZId, svcToken string, authSchemeStr string, authUsers []*model.AuthUser, edge *rest_management_api_client.ZitiEdgeManagement) (cfgID string, err error) {
func CreateConfig(cfgTypeZId, envZId, svcToken string, authSchemeStr string, authUsers []*model.AuthUser, edge *rest_management_api_client.ZitiEdgeManagement) (cfgZId string, err error) {
authScheme, err := model.ParseAuthScheme(authSchemeStr)
if err != nil {
return "", err
@ -26,7 +26,7 @@ func CreateConfig(cfgZId, envZId, svcToken string, authSchemeStr string, authUse
}
}
cfgCrt := &rest_model.ConfigCreate{
ConfigTypeID: &cfgZId,
ConfigTypeID: &cfgTypeZId,
Data: cfg,
Name: &svcToken,
Tags: ZrokServiceTags(svcToken),