Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add capacity values for the DMS K8S profile
[pti/o2.git]
/
o2ims
/
service
/
auditor
/
dms_handler.py
diff --git
a/o2ims/service/auditor/dms_handler.py
b/o2ims/service/auditor/dms_handler.py
index
33b7296
..
5152b27
100644
(file)
--- a/
o2ims/service/auditor/dms_handler.py
+++ b/
o2ims/service/auditor/dms_handler.py
@@
-82,7
+82,7
@@
def create_by(stxobj: StxGenericModel, parentid: str) -> DeploymentManager:
# logger.info(content)
supportedLocations = ''
capabilities = content['capabilities']
# logger.info(content)
supportedLocations = ''
capabilities = content['capabilities']
- capacity =
''
+ capacity =
content['capacity']
dmsendpoint = content['cluster_api_endpoint']
profile = _convert_content(content)
localmodel = DeploymentManager(
dmsendpoint = content['cluster_api_endpoint']
profile = _convert_content(content)
localmodel = DeploymentManager(
@@
-113,6
+113,7
@@
def update_by(target: DeploymentManager, stxobj: StxGenericModel,
target.hash = stxobj.hash
target.oCloudId = parentid
target.capabilities = content['capabilities']
target.hash = stxobj.hash
target.oCloudId = parentid
target.capabilities = content['capabilities']
+ target.capacity = content['capacity']
target.version_number = target.version_number + 1
target.profile = _convert_content(content)
target.version_number = target.version_number + 1
target.profile = _convert_content(content)