We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8cac82e + 7b6b8d4 commit 4437f1dCopy full SHA for 4437f1d
plugins/ocp-server/4.2.1/upgrade.py
@@ -57,5 +57,7 @@ def upgrade(plugin_context, search_py_script_plugin, apply_param_plugin, run_wor
57
if not run_workflow(start_workflows, repositories=[dest_repository], **{dest_repository.name: start_kwargs}):
58
return plugin_context.return_false()
59
upgrade_ctx = kwargs.get('upgrade_ctx')
60
- upgrade_ctx['index'] += 1
+ if upgrade_ctx:
61
+ if upgrade_ctx.get('index'):
62
+ upgrade_ctx['index'] += 1
63
return plugin_context.return_true()
0 commit comments