This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
The following commit(s) were added to refs/heads/main by this push:
new 1b7c54e Fix generation for UUID type (#60)
1b7c54e is described below
commit 1b7c54ef714785807556438cf2fd50a2891aff9f
Author: Vishesh <[email protected]>
AuthorDate: Thu May 25 14:40:59 2023 +0530
Fix generation for UUID type (#60)
---
generate/generate.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generate/generate.go b/generate/generate.go
index 6ac962f..3f693ec 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -1291,7 +1291,7 @@ func (s *service) generateConvertCode(cmd, name, typ
string) {
pn := s.pn
switch typ {
- case "string":
+ case "string", "UUID":
pn("u.Set(\"%s\", v.(string))", name)
case "int":
pn("vv := strconv.Itoa(v.(int))")