Skip to content

Commit 37fa801

Browse files
author
Alena Prokharchyk
committed
Resource metadata for autoscaleVmProfile - forgot to add dao mapping to the ResourceMetaDataManagerImpl
1 parent 65c5de1 commit 37fa801

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎server/src/com/cloud/metadata/ResourceMetaDataManagerImpl.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import org.apache.cloudstack.api.ResourceDetail;
2828
import org.apache.cloudstack.resourcedetail.ResourceDetailsDao;
29+
import org.apache.cloudstack.resourcedetail.dao.AutoScaleVmProfileDetailsDao;
2930
import org.apache.cloudstack.resourcedetail.dao.DiskOfferingDetailsDao;
3031
import org.apache.cloudstack.resourcedetail.dao.FirewallRuleDetailsDao;
3132
import org.apache.cloudstack.resourcedetail.dao.NetworkACLItemDetailsDao;
@@ -107,6 +108,8 @@ public class ResourceMetaDataManagerImpl extends ManagerBase implements Resource
107108
DiskOfferingDetailsDao _diskOfferingDetailsDao;
108109
@Inject
109110
UserDetailsDao _userDetailsDao;
111+
@Inject
112+
AutoScaleVmProfileDetailsDao _autoScaleVmProfileDetailsDao;
110113

111114
private static Map<ResourceObjectType, ResourceDetailsDao<? extends ResourceDetail>> s_daoMap = new HashMap<ResourceObjectType, ResourceDetailsDao<? extends ResourceDetail>>();
112115

@@ -134,6 +137,7 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
134137
s_daoMap.put(ResourceObjectType.VpnConnection, _vpnConnectionDetailsDao);
135138
s_daoMap.put(ResourceObjectType.DiskOffering, _diskOfferingDetailsDao);
136139
s_daoMap.put(ResourceObjectType.User, _userDetailsDao);
140+
s_daoMap.put(ResourceObjectType.AutoScaleVmProfile, _autoScaleVmProfileDetailsDao);
137141

138142
return true;
139143
}

0 commit comments

Comments
 (0)