Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-388527: Fix keyword argument order error #43

Conversation

stephenchengCloud
Copy link
Contributor

In the previous PR, in the __init__of ProgressDialogue, I put the keywork arguments after the positional arguments. But I forgot to do the same in CommitCreate when we construct a ProgressDialogue

Test the OnComplete callback was called:

Jun  7 01:07:47 xrtmia-11-05 xsconsole: stephen TaskEntry.Status: %s
Jun  7 01:07:47 xrtmia-11-05 xsconsole: True
Jun  7 01:07:47 xrtmia-11-05 xsconsole: SR.create complete and call back is called
Jun  7 01:07:47 xrtmia-11-05 xsconsole: {'opaqueRef': 'OpaqueRef:752a9389-edae-1b43-d96a-1fa24166d44a', 'type': 'any', 'hash': 6275920129978874783}

In the previous PR, in the `__init__`of `ProgressDialogue`,
I put the keywork arguments after the positional arguments.
But I forgot to do the same in `CommitCreate` when we
construct a `ProgressDialogue`

Signed-off-by: Stephen Cheng <[email protected]>
@@ -1203,8 +1203,8 @@ def create_sr_complete_callback(async_task, inOtherConfig):
Layout.Inst().PushDialogue(InfoDialogue(Lang("Storage Repository Creation Successful")))

Layout.Inst().PushDialogue(ProgressDialogue(async_task, messagePrefix,
create_sr_complete_callback,
inOtherConfig))
inOtherConfig,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minglumlu minglumlu merged commit dd20739 into xapi-project:master Jun 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants