Adding same cluster key pairs to default profiles
Change-Id: I42884e763faac4f92c3cd1ac1758517bd0432bd0
Signed-off-by: rshri <shrinithi.r@tataelxsi.co.in>
diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py
index bef5d58..17afe85 100644
--- a/osm_lcm/k8s.py
+++ b/osm_lcm/k8s.py
@@ -413,6 +413,7 @@
"app_profiles": "k8sapp",
"resource_profiles": "k8sresource",
}
+ self.logger.info("the db_cluster is :{}".format(db_cluster))
for profile_type in profiles:
profile_id = db_cluster[profile_type]
self.logger.info("profile id is : {}".format(profile_id))
@@ -425,7 +426,7 @@
db_profile["resourceState"] = db_cluster["resourceState"]
db_profile["operatingState"] = db_cluster["operatingState"]
db_profile["age_pubkey"] = db_cluster["age_pubkey"]
- db_profile["age_privkey"] = db_profile["age_privkey"]
+ db_profile["age_privkey"] = db_cluster["age_privkey"]
db_profile = self.update_operation_history(
db_profile, op_id, workflow_status, resource_status
)