Minor change in yaml indentation for kubeconfig in imported clusters 41/14741/4
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 18 Nov 2024 09:24:26 +0000 (10:24 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 18 Nov 2024 16:10:49 +0000 (17:10 +0100)
Change-Id: I01e9e62b7d155f71b57659f7280d6d2942e53492
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/odu_libs/cluster_mgmt.py

index 6540b71..73405ec 100644 (file)
@@ -303,7 +303,7 @@ async def register_cluster(self, op_id, op_params, content):
     secret_namespace2 = "managed-resources"
     secret_key2 = "kubeconfig"
     secret_value2 = yaml.safe_dump(
-        db_cluster["credentials"], indent=4, default_flow_style=False, sort_keys=False
+        db_cluster["credentials"], indent=2, default_flow_style=False, sort_keys=False
     )
     try:
         await self.create_secret(