File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def get_ahv_bf_vm_data(
97
97
cluster_uuid = clusters [0 ]["uuid" ]
98
98
99
99
params = {
100
- "length" : 250 ,
100
+ "length" : 1000 ,
101
101
"offset" : 0 ,
102
102
"filter" : "project_uuid=={};account_uuid=={}" .format (
103
103
project_uuid , cluster_uuid
@@ -233,7 +233,7 @@ def get_azure_bf_vm_data(
233
233
client = get_api_client ()
234
234
235
235
params = {
236
- "length" : 250 ,
236
+ "length" : 1000 ,
237
237
"offset" : 0 ,
238
238
"filter" : "project_uuid=={};account_uuid=={}" .format (
239
239
project_uuid , account_uuid
@@ -259,6 +259,10 @@ def get_azure_bf_vm_data(
259
259
e_id = e_resources ["instance_id" ]
260
260
e_address = e_resources ["address" ]
261
261
e_address_list = e_resources ["public_ip_address" ]
262
+ e_private_address = e_resources ["private_ip_address" ]
263
+ if (not e_address_list ) and e_private_address :
264
+ e_address = [e_private_address ]
265
+ e_address_list = e_private_address
262
266
263
267
if match_vm_data (
264
268
vm_name = e_name ,
Original file line number Diff line number Diff line change @@ -81,7 +81,19 @@ def compile_environment_dsl_class(env_cls, metadata=dict()):
81
81
for sub in env_payload ["spec" ]["resources" ].get ("substrate_definition_list" , []):
82
82
sub ["uuid" ] = str (uuid .uuid4 ())
83
83
84
- # TODO check if credential ref is working in readiness_probe and other places
84
+ # Adding uuid readiness-probe
85
+ cred_name_uuid_map = {}
86
+ for cred in env_payload ["spec" ]["resources" ].get ("credential_definition_list" , []):
87
+ cred_name_uuid_map [cred ["name" ]] = cred ["uuid" ]
88
+
89
+ for sub in env_payload ["spec" ]["resources" ].get ("substrate_definition_list" , []):
90
+ try :
91
+ cred_ref_obj = sub ["readiness_probe" ]["login_credential_local_reference" ]
92
+ cred_ref_obj ["uuid" ] = cred_name_uuid_map [cred_ref_obj ["name" ]]
93
+ except Exception :
94
+ pass
95
+
96
+ # TODO check if credential ref is working in attributes consuming credentials
85
97
86
98
return env_payload
87
99
You can’t perform that action at this time.
0 commit comments