Skip to content

Commit 4437f1d

Browse files
author
雪染
committed
Merge branch '3.1.1_release' into 'master'
v3.1.1 See merge request oceanbase/ob-deploy!275
2 parents 8cac82e + 7b6b8d4 commit 4437f1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/ocp-server/4.2.1/upgrade.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ def upgrade(plugin_context, search_py_script_plugin, apply_param_plugin, run_wor
5757
if not run_workflow(start_workflows, repositories=[dest_repository], **{dest_repository.name: start_kwargs}):
5858
return plugin_context.return_false()
5959
upgrade_ctx = kwargs.get('upgrade_ctx')
60-
upgrade_ctx['index'] += 1
60+
if upgrade_ctx:
61+
if upgrade_ctx.get('index'):
62+
upgrade_ctx['index'] += 1
6163
return plugin_context.return_true()

0 commit comments

Comments
 (0)