diff --git a/Makefile b/Makefile index 226998982c..4380cb7141 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,7 @@ define buildProvider $(eval $@_BIN = "${$@_DIST}"/"${$@_NAME}") echo "--> [${$@_NAME}] process resources" ./lr go ${$@_HOME}/resources/${$@_NAME}.lr --dist ${$@_DIST} + ./lr docs yaml ${$@_HOME}/resources/${$@_NAME}.lr --docs-file ${$@_HOME}/resources/${$@_NAME}.lr.manifest.yaml ./lr docs json ${$@_HOME}/resources/${$@_NAME}.lr.manifest.yaml echo "--> [${$@_NAME}] generate CLI json" cd ${$@_HOME} && go run ./gen/main.go . diff --git a/providers/ms365/resources/ms365.lr.go b/providers/ms365/resources/ms365.lr.go index e950f9c8b1..e7b383027d 100644 --- a/providers/ms365/resources/ms365.lr.go +++ b/providers/ms365/resources/ms365.lr.go @@ -118,10 +118,10 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD if res != nil { id := name+"\x00"+res.MqlID() - if x, ok := runtime.Resources[id]; ok { + if x, ok := runtime.Resources.Get(id); ok { return x, nil } - runtime.Resources[id] = res + runtime.Resources.Set(id, res) return res, nil } @@ -134,11 +134,11 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD } id := name+"\x00"+res.MqlID() - if x, ok := runtime.Resources[id]; ok { + if x, ok := runtime.Resources.Get(id); ok { return x, nil } - runtime.Resources[id] = res + runtime.Resources.Set(id, res) return res, nil } @@ -157,11 +157,11 @@ func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.R } id := name+"\x00"+res.MqlID() - if x, ok := runtime.Resources[id]; ok { + if x, ok := runtime.Resources.Get(id); ok { return x, nil } - runtime.Resources[id] = res + runtime.Resources.Set(id, res) return res, nil }