Skip to content

Commit b62699b

Browse files
authored
Merge pull request ceph#59918 from rhcs-dashboard/fix-68176-main
mgr/dashboard: fix setting compression type while editing rgw zone Reviewed-by: Nizamudeen A <[email protected]>
2 parents fa95da9 + ff7aa42 commit b62699b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pybind/mgr/dashboard/services/rgw_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,8 +1758,9 @@ def add_storage_class_zone(self, zone_name: str, placement_target: str, storage_
17581758
rgw_zone_add_storage_class_cmd = ['zone', 'placement', 'add', '--rgw-zone', zone_name,
17591759
'--placement-id', placement_target,
17601760
'--storage-class', storage_class,
1761-
'--data-pool', data_pool,
1762-
'--compression', compression]
1761+
'--data-pool', data_pool]
1762+
if compression:
1763+
rgw_zone_add_storage_class_cmd.extend(['--compression', compression])
17631764
try:
17641765
exit_code, _, err = mgr.send_rgwadmin_command(rgw_zone_add_storage_class_cmd)
17651766
if exit_code > 0:

0 commit comments

Comments
 (0)