X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Ffolder%2Ffolder-st-disable.go;h=7b53ca83b67c226a7963e4dac548400ae795b7b5;hb=8d3f51e52894d46a4a92a944bc09f4ceaa1abf51;hp=f90b776f208caf26d96aaae965a8264cac57567b;hpb=b1708565ee2b4d725bb98c6b015f16af3d2a097e;p=src%2Fxds%2Fxds-server.git diff --git a/lib/folder/folder-st-disable.go b/lib/folder/folder-st-disable.go index f90b776..7b53ca8 100644 --- a/lib/folder/folder-st-disable.go +++ b/lib/folder/folder-st-disable.go @@ -25,7 +25,11 @@ func NewFolderSTDisable(gc *xdsconfig.Config) *STFolderDisable { // NewUID Get a UUID func (f *STFolderDisable) NewUID(suffix string) string { - return uuid.NewV1().String() + "_" + suffix + uuid := uuid.NewV1().String() + if len(suffix) > 0 { + uuid += "_" + suffix + } + return uuid } // Add a new folder