@@ -1239,7 +1239,7 @@ def test_enter_failure_1(self, _target_state, _logger, _call, _listdir):
12391239 ctx : _cephadm .CephadmContext = _cephadm .cephadm_init_ctx (
12401240 ['host-maintenance' , 'enter' , '--fsid' , TestMaintenance .fsid ])
12411241 ctx .container_engine = mock_podman ()
1242- retval = _cephadm .command_maintenance (ctx )
1242+ retval = _cephadm .change_maintenance_mode (ctx )
12431243 assert retval .startswith ('failed' )
12441244
12451245 @mock .patch ('os.listdir' , return_value = [])
@@ -1252,7 +1252,7 @@ def test_enter_failure_2(self, _target_state, _logger, _call, _listdir):
12521252 ctx : _cephadm .CephadmContext = _cephadm .cephadm_init_ctx (
12531253 ['host-maintenance' , 'enter' , '--fsid' , TestMaintenance .fsid ])
12541254 ctx .container_engine = mock_podman ()
1255- retval = _cephadm .command_maintenance (ctx )
1255+ retval = _cephadm .change_maintenance_mode (ctx )
12561256 assert retval .startswith ('failed' )
12571257
12581258 @mock .patch ('os.listdir' , return_value = [])
@@ -1267,7 +1267,7 @@ def test_exit_failure_1(self, _target_exists, _target_state, _logger, _call, _li
12671267 ctx : _cephadm .CephadmContext = _cephadm .cephadm_init_ctx (
12681268 ['host-maintenance' , 'exit' , '--fsid' , TestMaintenance .fsid ])
12691269 ctx .container_engine = mock_podman ()
1270- retval = _cephadm .command_maintenance (ctx )
1270+ retval = _cephadm .change_maintenance_mode (ctx )
12711271 assert retval .startswith ('failed' )
12721272
12731273 @mock .patch ('os.listdir' , return_value = [])
@@ -1282,7 +1282,7 @@ def test_exit_failure_2(self, _target_exists, _target_state, _logger, _call, _li
12821282 ctx : _cephadm .CephadmContext = _cephadm .cephadm_init_ctx (
12831283 ['host-maintenance' , 'exit' , '--fsid' , TestMaintenance .fsid ])
12841284 ctx .container_engine = mock_podman ()
1285- retval = _cephadm .command_maintenance (ctx )
1285+ retval = _cephadm .change_maintenance_mode (ctx )
12861286 assert retval .startswith ('failed' )
12871287
12881288
0 commit comments