mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-29 03:51:54 +08:00
fix: register metadatas for identity and glance (#21032)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -43,14 +43,19 @@ func init() {
|
||||
[]string{"id", "key", "value"},
|
||||
[]string{})}
|
||||
// !!! Register computer metadata ONLY !!! QIUJIAN
|
||||
modules.RegisterCompute(&ComputeMetadatas)
|
||||
// allpw register multiple metadatas! 20240815
|
||||
modules.Register(&ComputeMetadatas)
|
||||
|
||||
IdentityMetadatas = MetadataManager{modules.NewIdentityV3Manager("metadata", "metadatas",
|
||||
[]string{"id", "key", "value"},
|
||||
[]string{})}
|
||||
modules.Register(&IdentityMetadatas)
|
||||
|
||||
ImageMetadatas = MetadataManager{modules.NewImageManager("metadata", "metadatas",
|
||||
[]string{"id", "key", "value"},
|
||||
[]string{})}
|
||||
|
||||
modules.Register(&ImageMetadatas)
|
||||
}
|
||||
|
||||
func (this *MetadataManager) getModule(session *mcclient.ClientSession, params jsonutils.JSONObject) (modulebase.Manager, error) {
|
||||
|
||||
Reference in New Issue
Block a user