diff --git a/pkg/mcclient/modules/mod_elasticcache.go b/pkg/mcclient/modules/mod_elasticcache.go index 8626c06506..c90df7faea 100644 --- a/pkg/mcclient/modules/mod_elasticcache.go +++ b/pkg/mcclient/modules/mod_elasticcache.go @@ -23,7 +23,7 @@ import ( var ( ElasticCache ElasticCacheManager - ElasticCacheAccount modulebase.ResourceManager + ElasticCacheAccount ElasticCacheAccountManager ElasticCacheBackup modulebase.ResourceManager ElasticCacheAcl modulebase.ResourceManager ElasticCacheParameter modulebase.ResourceManager @@ -33,14 +33,18 @@ type ElasticCacheManager struct { modulebase.ResourceManager } +type ElasticCacheAccountManager struct { + modulebase.ResourceManager +} + func init() { ElasticCache = ElasticCacheManager{NewComputeManager("elasticcache", "elasticcaches", []string{"ID", "Name", "Cloudregion_Id", "Status", "InstanceType", "CapacityMB", "Engine", "EngineVersion"}, []string{})} - ElasticCacheAccount = NewComputeManager("elasticcacheaccount", "elasticcacheaccounts", + ElasticCacheAccount = ElasticCacheAccountManager{NewComputeManager("elasticcacheaccount", "elasticcacheaccounts", []string{}, - []string{}) + []string{})} ElasticCacheBackup = NewComputeManager("elasticcachebackup", "elasticcachebackups", []string{}, @@ -64,3 +68,7 @@ func init() { func (self *ElasticCacheManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error) { return self.GetSpecific(s, id, "login-info", params) } + +func (self *ElasticCacheAccountManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error) { + return self.GetSpecific(s, id, "login-info", params) +}