Add update catalog support for plugin based catalogs in handler and go sdk (#1673)
* Create catalog service handler for updating plugin. Add tests for handler and run make fmt. Silently drop attributes where the value is nil when creating the catalog or set.
This commit is contained in:
12 files changed
+437
-23
No files matched your search
@@ -71,8 +71,9 @@ func patchM(dst, src map[string]interface{}) map[string]interface{} {
|
||||
// If the value in dst a map, continue to patch
|
||||
dst[k] = patchM(y, x)
|
||||
} else {
|
||||
// Overwrite
|
||||
dst[k] = x
|
||||
// Overwrite after stripping out keys to nil values
|
||||
newX := patchM(make(map[string]interface{}), x)
|
||||
dst[k] = newX
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user