Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fixed folder ID and label generation.
[src/xds/xds-server.git]
/
lib
/
folder
/
folder-pathmap.go
diff --git
a/lib/folder/folder-pathmap.go
b/lib/folder/folder-pathmap.go
index
bc714dd
..
e200164
100644
(file)
--- a/
lib/folder/folder-pathmap.go
+++ b/
lib/folder/folder-pathmap.go
@@
-33,7
+33,11
@@
func NewFolderPathMap(gc *xdsconfig.Config) *PathMap {
// NewUID Get a UUID
func (f *PathMap) 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