File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
sky/clouds/service_catalog Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ def _apply_az_mapping(df: 'pd.DataFrame') -> 'pd.DataFrame':
52
52
az_mappings .to_csv (az_mapping_path , index = False )
53
53
else :
54
54
az_mappings = pd .read_csv (az_mapping_path )
55
- df = df .merge (az_mappings , on = ['AvailabilityZone' ], how = 'left' )
55
+ # Use inner join to drop rows with unknown AZ IDs, which are likely
56
+ # because the user does not have access to that Region. Otherwise,
57
+ # there will be rows with NaN in the AvailabilityZone column.
58
+ df = df .merge (az_mappings , on = ['AvailabilityZone' ], how = 'inner' )
56
59
df = df .drop (columns = ['AvailabilityZone' ]).rename (
57
60
columns = {'AvailabilityZoneName' : 'AvailabilityZone' })
58
61
return df
Original file line number Diff line number Diff line change 31
31
# 'me-south-1',
32
32
# 'me-central-1',
33
33
# 'af-south-1',
34
- # 'af-south-2',
35
- # 'ap-east-1',
34
+ 'ap-east-1' , # enable this non-default region due to user request
36
35
# 'ap-southeast-3',
37
36
'ap-south-1' ,
37
+ # 'ap-south-2',
38
38
'ap-northeast-3' ,
39
39
'ap-northeast-2' ,
40
40
'ap-southeast-1' ,
You can’t perform that action at this time.
0 commit comments